From abb4dcff69425f9d73ca491a9377012783da4361 Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Sun, 20 Apr 2025 20:52:46 +0800 Subject: [PATCH] Update SettingsView.vue --- packages/frontend/src/views/SettingsView.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/views/SettingsView.vue b/packages/frontend/src/views/SettingsView.vue index f12f266..2762b59 100644 --- a/packages/frontend/src/views/SettingsView.vue +++ b/packages/frontend/src/views/SettingsView.vue @@ -7,8 +7,8 @@
{{ twoFactorMessage }}
配置登录失败次数限制和自动封禁时长。本地地址 (127.0.0.1, ::1) 不会被封禁。
@@ -654,6 +654,8 @@ onMounted(async () => { background-color: var(--app-bg-color); max-width: 1200px; /* 限制最大宽度 */ margin: 0 auto; /* 居中 */ + min-height: calc(100vh - 60px); /* 尝试设置最小高度,60px 是假设的页眉高度,可能需要调整 */ + box-sizing: border-box; /* 确保 padding 包含在计算内 */ } h1 { @@ -685,7 +687,7 @@ h1 { box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 添加细微阴影 */ display: flex; /* 使 section 内部元素可以更好地控制 */ flex-direction: column; /* 默认垂直排列 */ - height: 100%; /* 让 section 填充 grid 单元格高度 */ + /* height: 100%; */ /* <-- 移除此行,让高度自适应内容 */ } .settings-section-full-width {