From 40ca089f029e4231bfe5924f813563fb2cf99739 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 5 Aug 2024 19:05:39 +0800 Subject: [PATCH] BottomSheet: fix visual problem on iOS --- src/material/BottomSheet.module.css | 3 ++- src/settings/Settings.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/material/BottomSheet.module.css b/src/material/BottomSheet.module.css index 0295b86..e48ce13 100644 --- a/src/material/BottomSheet.module.css +++ b/src/material/BottomSheet.module.css @@ -22,11 +22,12 @@ @media (max-width: 560px) { & { left: 0; - top: var(--safe-area-inset-top, 0); + top: 0; transform: none; bottom: 0; height: 100vh; height: 100dvh; + max-height: 100%; } } } diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 31a7424..0a76743 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -49,7 +49,7 @@ const Settings: ParentComponent = () => { - +