mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
fix(android): make sidebar settings button visible above system nav bar
Use JS-computed var(--safe-area-bottom) instead of env(safe-area-inset-bottom) which returns 0 on Android WebView. Also account for bottom nav height and position sidebar below status bar on native mobile. Closes #6561
This commit is contained in:
parent
1471b101fe
commit
ef07ae8ff2
1 changed files with 5 additions and 1 deletions
|
|
@ -134,6 +134,10 @@
|
|||
transition: none !important;
|
||||
}
|
||||
|
||||
:host-context(body.isNativeMobile) &.mobile {
|
||||
top: var(--safe-area-top);
|
||||
}
|
||||
|
||||
// Position right
|
||||
&.position-right {
|
||||
left: auto;
|
||||
|
|
@ -202,7 +206,7 @@
|
|||
|
||||
@media (max-width: 600px) {
|
||||
padding-top: var(--safe-area-top);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
padding-bottom: calc(var(--safe-area-bottom) + var(--bottom-nav-height));
|
||||
}
|
||||
|
||||
:host-context(.isMac.isElectron) & {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue