From cbdf5e667d8e4e692d4cb0515efdb7f1e5ac88f3 Mon Sep 17 00:00:00 2001 From: thislight Date: Sat, 23 Nov 2024 21:22:23 +0800 Subject: [PATCH] StackedRouter: fix page width --- src/platform/StackedRouter.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 {