Fix connection window location
This commit is contained in:
@@ -71,16 +71,17 @@ class ConnectionSetup extends React.Component<Props, {}> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const connectionHeight = '440px'
|
||||||
const styles = (theme: Theme) => ({
|
const styles = (theme: Theme) => ({
|
||||||
title: {
|
title: {
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
whiteSpace: 'nowrap' as 'nowrap',
|
whiteSpace: 'nowrap' as 'nowrap',
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
margin: '13vw auto 0 auto',
|
margin: `calc((100vh - ${connectionHeight}) / 2) auto 0 auto`,
|
||||||
minWidth: '800px',
|
minWidth: '800px',
|
||||||
maxWidth: '850px',
|
maxWidth: '850px',
|
||||||
height: '440px',
|
height: connectionHeight,
|
||||||
outline: 'none' as 'none',
|
outline: 'none' as 'none',
|
||||||
display: 'flex' as 'flex',
|
display: 'flex' as 'flex',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ function createWindow() {
|
|||||||
height: runningUiTestOnCi ? 720 : 700,
|
height: runningUiTestOnCi ? 720 : 700,
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
zoomFactor: runningUiTestOnCi ? 1.15 : undefined,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
devTools: true,
|
devTools: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user