style(mobile): improve sidebar margins on iOS

This commit is contained in:
Elian Doran 2024-12-28 14:29:26 +02:00
parent cd0df29307
commit b168d68f93
No known key found for this signature in database

View File

@ -1174,11 +1174,11 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
} }
#mobile-sidebar-container { #mobile-sidebar-container {
position: absolute; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: var(--launcher-pane-size); bottom: var(--launcher-pane-size);
z-index: -1000; z-index: -1000;
} }
@ -1190,7 +1190,12 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
} }
#mobile-sidebar-wrapper { #mobile-sidebar-wrapper {
width: 85vw; position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 80vw;
padding-top: env(safe-area-inset-top);
transform: translateX(-100%); transform: translateX(-100%);
transition: transform 250ms ease-in-out; transition: transform 250ms ease-in-out;
background: var(--main-background-color); background: var(--main-background-color);