diff --git a/src/platform/StackedRouter.css b/src/platform/StackedRouter.css index 320dfe7..71a6333 100644 --- a/src/platform/StackedRouter.css +++ b/src/platform/StackedRouter.css @@ -13,6 +13,8 @@ dialog.StackedPage { padding: 0; overscroll-behavior: none; width: 560px; + max-width: 100vw; + max-width: 100dvw; max-height: 100vh; max-height: 100dvh; /* @@ -29,8 +31,8 @@ dialog.StackedPage { display: none; contain: strict; - contain-intrinsic-size: auto 560px auto 100vh; - contain-intrinsic-size: auto 560px auto 100dvh; + contain-intrinsic-size: 560px 100vh; + contain-intrinsic-size: 560px 100dvh; content-visibility: auto; background: var(--tutu-color-surface); @@ -47,11 +49,10 @@ dialog.StackedPage { contain-intrinsic-size: 100vw 100vh; contain-intrinsic-size: 100dvw 100dvh; } - } &[open] { - display: contents; + display: block; } &::backdrop {