Skip to content

Commit

Permalink
Support window sizes down to 200x200. Add scss to change omnibox for …
Browse files Browse the repository at this point in the history
…small windows.
  • Loading branch information
thmsbfft committed Jan 23, 2017
1 parent 0832467 commit 7aee08f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/main/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function Window(parameters) {
show: false,
x: parameters.x ? parameters.x : 890,
y: parameters.y ? parameters.y : 660,
minWidth: 600,
minHeight: 350,
minWidth: 200,
minHeight: 200,
darkTheme: true,
webPreferences: {
"experimentalFeatures": true,
Expand All @@ -59,7 +59,7 @@ function Window(parameters) {
this.browser.loadURL('file://' + __dirname + '/src/html/index.html' + '#' + this.id);

// @if NODE_ENV='development'
// this.browser.webContents.openDevTools();
this.browser.webContents.openDevTools();
// @endif
}

Expand Down
16 changes: 16 additions & 0 deletions src/sass/omnibox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,20 @@ omnibox {
}
}
}
}

@media (max-width: 485px) {

omnibox {

.box {
top: 4px;
width: calc(100% - 8px);
.input {
border-radius: 2px;
}
}

}

}

0 comments on commit 7aee08f

Please sign in to comment.