From ad65ca1a7cedca15eb86919edd1219feff89e775 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 26 Nov 2026 15:33:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(protect):=20=E9=A2=84=E8=A7=88=E5=9B=BE?= =?UTF-8?q?=E6=94=BE=E5=AE=BD=E5=88=B0=20672px=EF=BC=8C=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=94=B6=E7=AA=84=E5=88=B0=20320px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一版把两者放进同一个 grid 右列后,列宽被内容撑到 395px —— 下拉跟着变宽, 预览图被迫跟下拉同宽,小到看不清界面细节;且 class="max-w-xs" 写在 UiSelect 上不生效(组合组件不把 class 透到 DOM 根),得在外层套 div 限宽。 - grid 右列 minmax(0,1fr) → minmax(0,42rem):预览图最多 672px - 下拉外面套
:稳定 320px,不随列宽膨胀 - 左边缘仍共用同一列,对齐不变 --- frontend/src/pages/admin/protect/index.vue | 32 ++++++++++++---------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/frontend/src/pages/admin/protect/index.vue b/frontend/src/pages/admin/protect/index.vue index 7af7867..81f3a30 100644 --- a/frontend/src/pages/admin/protect/index.vue +++ b/frontend/src/pages/admin/protect/index.vue @@ -644,26 +644,28 @@ onBeforeUnmount(() => {
{{ t("admin.protect.themeLabel") }}
- - - - - - - {{ o.label }} - - - +
+ + + + + + + {{ o.label }} + + + +