BottomSheet: sets max-height to 100vh on desktop

This commit is contained in:
thislight 2024-08-22 16:50:12 +08:00
parent 25875ab020
commit fe2802d933

View file

@ -10,10 +10,13 @@
max-width: 560px; max-width: 560px;
border-radius: 2px; border-radius: 2px;
overscroll-behavior: contain; overscroll-behavior: contain;
max-height: 100vh;
max-height: 100dvh;
&::backdrop { &::backdrop {
background-color: black; background-color: black;
opacity: 0.5; opacity: 0.5;
transition: opacity 220ms var(--tutu-anim-curve-std);
} }
box-shadow: var(--tutu-shadow-e16); box-shadow: var(--tutu-shadow-e16);
@ -39,5 +42,9 @@
&.animated { &.animated {
position: absolute; position: absolute;
transform: none; transform: none;
&::backdrop {
opacity: 0;
}
} }
} }