From d8ef2c3dde9efbd7f49f7668813b95eee39e927b Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 18 Dec 2025 09:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=9B=BA=E5=AE=9A=E5=A4=B4?= =?UTF-8?q?=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AppMain.vue | 33 +++++++++++++++++++++++++++++++ src/settings.js | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 4a553cf..4f1dc35 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -71,6 +71,39 @@ function addIframe() { min-height: 0px; } } + +/* 移动端fixed-header优化 */ +@media screen and (max-width: 991px) { + .fixed-header + .app-main { + padding-bottom: max(60px, calc(constant(safe-area-inset-bottom) + 40px)); + padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); + overscroll-behavior-y: none; + } + + .hasTagsView .fixed-header + .app-main { + padding-bottom: max(60px, calc(constant(safe-area-inset-bottom) + 40px)); + padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); + overscroll-behavior-y: none; + } +} + +@supports (-webkit-touch-callout: none) { + @media screen and (max-width: 991px) { + .fixed-header + .app-main { + padding-bottom: max(17px, calc(constant(safe-area-inset-bottom) + 10px)); + padding-bottom: max(17px, calc(env(safe-area-inset-bottom) + 10px)); + height: calc(100svh - 50px); + height: calc(100dvh - 50px); + } + + .hasTagsView .fixed-header + .app-main { + padding-bottom: max(17px, calc(constant(safe-area-inset-bottom) + 10px)); + padding-bottom: max(17px, calc(env(safe-area-inset-bottom) + 10px)); + height: calc(100svh - 84px); + height: calc(100dvh - 84px); + } + } +}