mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-04 04:04:44 -07:00
smaller default window size to account for larger screens
This commit is contained in:
parent
a4a7d54588
commit
1f895946cb
3 changed files with 4 additions and 4 deletions
|
|
@ -325,14 +325,14 @@ export const LaunchScreen = ({ onLaunch }: LaunchScreenProps) => {
|
||||||
onChange={setActiveTab}
|
onChange={setActiveTab}
|
||||||
styles={{
|
styles={{
|
||||||
root: {
|
root: {
|
||||||
maxHeight: '54vh',
|
maxHeight: '51vh',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
},
|
},
|
||||||
panel: {
|
panel: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
paddingTop: '0.75rem',
|
paddingTop: '1rem',
|
||||||
paddingRight: '0.5rem',
|
paddingRight: '0.5rem',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export const SettingsModal = ({
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: '67vh',
|
height: '66vh',
|
||||||
padding: 0,
|
padding: 0,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ let mainWindow: BrowserWindow | null = null;
|
||||||
|
|
||||||
export function createMainWindow() {
|
export function createMainWindow() {
|
||||||
const { size } = screen.getPrimaryDisplay();
|
const { size } = screen.getPrimaryDisplay();
|
||||||
const windowHeight = Math.floor(size.height * 0.9);
|
const windowHeight = Math.min(Math.floor(size.height * 0.75), 1000);
|
||||||
const windowWidth = 800;
|
const windowWidth = 800;
|
||||||
|
|
||||||
const icon = isDevelopment
|
const icon = isDevelopment
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue