Fix settings button not being clickable

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-08-24 15:40:25 +02:00
parent f383f0be6c
commit b7f8c8368c
2 changed files with 29 additions and 29 deletions

View File

@ -49,11 +49,6 @@ body {
-webkit-overflow-scrolling: touch;
}
/* Allow window to be dragged from header */
#app-header {
-webkit-app-region: drag;
}
/* Prevent blue outline */
a:focus,
input:focus,

View File

@ -163,41 +163,42 @@ export class MainPage extends React.Component<
return (
<>
<Flex
id="app-header"
justifyContent="center"
justifyContent="space-between"
alignItems="center"
paddingTop="14px"
style={{
width: '100%',
height: '50px',
padding: '13px 14px',
textAlign: 'center',
// Allow window to be dragged from header
// @ts-ignore
'-webkit-app-region': 'drag',
position: 'relative',
zIndex: 1,
}}
>
<EtcherSvg
width="123px"
height="22px"
style={{
cursor: 'pointer',
}}
onClick={() =>
openExternal('https://www.balena.io/etcher?ref=etcher_footer')
}
tabIndex={100}
/>
<Flex width="100%" />
<Flex width="100%" alignItems="center" justifyContent="center">
<EtcherSvg
width="123px"
height="22px"
style={{
cursor: 'pointer',
}}
onClick={() =>
openExternal('https://www.balena.io/etcher?ref=etcher_footer')
}
tabIndex={100}
/>
</Flex>
<Flex
style={{
float: 'right',
position: 'absolute',
right: 0,
}}
>
<Flex width="100%" alignItems="center" justifyContent="flex-end">
<Icon
icon={<CogSvg height="1em" fill="currentColor" />}
plain
tabIndex={5}
onClick={() => this.setState({ hideSettings: false })}
style={{
// Make touch events click instead of dragging
'-webkit-app-region': 'no-drag',
}}
/>
{!settings.getSync('disableExternalLinks') && (
<Icon
@ -209,6 +210,10 @@ export class MainPage extends React.Component<
)
}
tabIndex={6}
style={{
// Make touch events click instead of dragging
'-webkit-app-region': 'no-drag',
}}
/>
)}
</Flex>