From fc85225fd5b8d4c866493a9bbe6ce3a0000e8f59 Mon Sep 17 00:00:00 2001 From: TOM88812 Date: Sun, 16 Feb 2025 23:13:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZhiKongTaiWeb/src/App.vue | 27 +++++++++++++++++--- ZhiKongTaiWeb/src/components/Main.vue | 8 ++++++ ZhiKongTaiWeb/src/components/RoleSetting.vue | 7 +++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/ZhiKongTaiWeb/src/App.vue b/ZhiKongTaiWeb/src/App.vue index 7dbc3af7..52081e2b 100644 --- a/ZhiKongTaiWeb/src/App.vue +++ b/ZhiKongTaiWeb/src/App.vue @@ -24,17 +24,16 @@ export default { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #2c3e50; - width: 100%; - height: 100%; + min-height: 100vh; display: flex; flex-direction: column; } .app-content { flex: 1; - width: 100%; display: flex; flex-direction: column; + min-height: 0; /* 允许内容区域收缩 */ } /* 登录注册页面的布局 */ @@ -47,8 +46,28 @@ export default { /* 主要页面的布局 */ .main-layout { flex: 1; - width: 100%; display: flex; flex-direction: column; + min-height: 0; /* 允许内容区域收缩 */ +} + +/* 添加全局滚动条样式 */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + background: #f1f1f1; + border-radius: 4px; +} + +::-webkit-scrollbar-thumb { + background: #ccc; + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:hover { + background: #999; } \ No newline at end of file diff --git a/ZhiKongTaiWeb/src/components/Main.vue b/ZhiKongTaiWeb/src/components/Main.vue index 6d81a77f..3a0ab876 100644 --- a/ZhiKongTaiWeb/src/components/Main.vue +++ b/ZhiKongTaiWeb/src/components/Main.vue @@ -21,6 +21,10 @@ + +