From d6a44af7fea6064ee2b60714cf48436ccd1dbc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Mon, 24 Mar 2025 10:36:09 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D`=20dvh`=20=E5=9C=A8?= =?UTF-8?q?=E4=BD=8E=E7=89=88=E6=9C=AC=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=8B?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/css/footer-layer.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/common/css/footer-layer.css b/common/css/footer-layer.css index 46b1889b..d7517780 100644 --- a/common/css/footer-layer.css +++ b/common/css/footer-layer.css @@ -4,12 +4,23 @@ overflow:hidden; } +@supports (max-height: 1dvh) { + .footer-layer > .footer-layer-content { + max-height: calc(100dvh - var(--footer-height) - var(--nav-height) - 25px); + } +} + +@supports not (max-height: 1dvh) { + .footer-layer > .footer-layer-content { + max-height: calc(100vh - var(--footer-height) - var(--nav-height) - 25px); + } +} + .footer-layer > .footer-layer-content { width: 100%; height: 100%; display: flex; flex-direction: column; - max-height: calc(100dvh - var(--footer-height) - var(--nav-height) - 25px); } .footer-layer > .footer-layer-content > .layui-layer-title {