Skip to content

Commit

Permalink
Make start window resizable
Browse files Browse the repository at this point in the history
  • Loading branch information
Heath123 committed Dec 24, 2021
1 parent d6482b2 commit 2de217e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions html/startPage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1 class='title'>pakkit</h1>
<br><br>
<p>
<label for="manual-auth">Manual auth:</label>
<span style="display: table-cell; width: 1px;">Asks for login credentials in a dialog box on join instead of automatically detecting them. Also forces online mode.</span>
<span style="display: table-cell; width: calc(100vw - 200px);">Asks for login credentials in a dialog box on join instead of automatically detecting them. Also forces online mode.</span>
</p>
<br>
<p>
Expand Down Expand Up @@ -106,7 +106,7 @@ <h1 class='title'>pakkit</h1>
<br><br>
<p>
<label for="consent">Consent:</label>
<span style="display: table-cell; width: 1px;">Allow pakkit to use my auth token from launcher_profiles.json for logging in to online mode servers</span>
<span style="display: table-cell; width: calc(100vw - 200px);">Allow pakkit to use my auth token from launcher_profiles.json for logging in to online mode servers</span>
</p>
<br>
<p>
Expand Down
4 changes: 0 additions & 4 deletions html/startPage/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
body {
max-width: 500px;
}

h1.title {
font-family: "Lucida Console", Monaco, monospace;
}
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ function createWindow() {

// Create the browser window.
const win = new BrowserWindow({
height: store.get('authConsentGiven') ? 700 : 870,
height: store.get('authConsentGiven') ? 680 : 810,
width: 500,
resizable: false,
// resizable: false,
// frame: false,
webPreferences: {
nodeIntegration: true,
Expand Down Expand Up @@ -305,4 +305,4 @@ ipcMain.on('loadLog', async (event, arg) => {
})

// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
// code. You can also put them in separate files and require them here.

0 comments on commit 2de217e

Please sign in to comment.