From ccc452eb6b1b9f2273a2a0e76cf97de1e26b8a83 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 4 Sep 2025 19:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BA=E5=AE=9A=E5=A4=B4?= =?UTF-8?q?=E9=83=A8=E6=97=B6=E5=87=BA=E7=8E=B0=E7=9A=84=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8F=E5=81=8F=E7=A7=BB=E9=97=AE=E9=A2=98(ICV9OH)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AppMain.vue | 21 +++++++++++---------- src/layout/index.vue | 5 +++++ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 2ab1b81..4a553cf 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -44,12 +44,19 @@ function addIframe() { overflow: hidden; } +.fixed-header + .app-main { + overflow-y: auto; + scrollbar-gutter: auto; + height: calc(100vh - 50px); + min-height: 0px; +} + .app-main:has(.copyright) { padding-bottom: 36px; } .fixed-header + .app-main { - padding-top: 50px; + margin-top: 50px; } .hasTagsView { @@ -59,19 +66,14 @@ function addIframe() { } .fixed-header + .app-main { - padding-top: 84px; + margin-top: 84px; + height: calc(100vh - 84px); + min-height: 0px; } } - diff --git a/src/layout/index.vue b/src/layout/index.vue index 9bdf656..57cbdb3 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -79,6 +79,11 @@ function setLayout() { } } +.main-container:has(.fixed-header) { + height: 100vh; + overflow: hidden; +} + .drawer-bg { background: #000; opacity: 0.3;