From 1126d575ef4a88be40559e9d10045ad1e1c746f6 Mon Sep 17 00:00:00 2001 From: holybasil Date: Wed, 9 Apr 2025 08:51:09 +0800 Subject: [PATCH] fix: use svh --- src/app/SCR-sSCR/Header/GetSCRDialog.tsx | 13 ++++++------- src/app/globals.css | 1 - src/app/template.tsx | 13 ------------- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/app/SCR-sSCR/Header/GetSCRDialog.tsx b/src/app/SCR-sSCR/Header/GetSCRDialog.tsx index 897be0bf7..6871e72ff 100644 --- a/src/app/SCR-sSCR/Header/GetSCRDialog.tsx +++ b/src/app/SCR-sSCR/Header/GetSCRDialog.tsx @@ -24,7 +24,6 @@ const GetSCRDialog = props => { "& .MuiDialog-paper": { width: "54.4rem", maxWidth: "100%", - padding: "4rem 3.2rem", borderRadius: "2rem", }, }, @@ -33,11 +32,10 @@ const GetSCRDialog = props => { "& .MuiDialog-paper": { margin: 0, borderRadius: 0, - height: "calc(var(--vh, 1vh) * 100)", + height: "100dvh", maxHeight: "unset", minWidth: "unset", width: "100%", - padding: "1.6rem 2rem 2rem", }, }, }), @@ -48,18 +46,18 @@ const GetSCRDialog = props => { Get SCR @@ -68,8 +66,9 @@ const GetSCRDialog = props => { { - // function setVh() { - // const vh = window.innerHeight * 0.01 - // document.documentElement.style.setProperty("--vh", `${vh}px`) - // } - // setVh() - // window.addEventListener("resize", setVh) - // return () => { - // window.removeEventListener("resize", setVh) - // } - // }, []) - return (