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