fix: (regression 0.30.0) admin: huge menu bar on safari

Massimo Melina committed Feb 7, 2023 at 14:47 UTC 32c6c712d402bbb9594780061de60772517558b3
1 file changed +3 -2
admin/src/MainMenu.ts
+3 -2
@@ -73,8 +73,9 @@ export default function Menu({ onSelect }: { onSelect: ()=>void }) {
73 h(ListItemText, { primary: getMenuLabel(it) })
74 ) ),
75 h('img', { src: 'hfs-logo.svg', style: {
76 - opacity: .7, bottom: 0, width: '80%', marginLeft: 'auto', marginRight: 'auto', flex: 1,
77 - height: 0, // trick: without this the flex doesn't work
76 + opacity: .7, bottom: 0, marginLeft: 'auto', marginRight: 'auto', flex: 1,
77 + maxWidth: '80%', // using 'width' produces huge image on safari
78 + height: 0, // trick: without this the flex doesn't work
79 } }),
80 )
81 }