From f9915535b68fdbbf2a9a20293ef0e76aa0ceed91 Mon Sep 17 00:00:00 2001 From: stash Date: Thu, 29 Oct 2026 20:31:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=86=E7=B1=BB=E8=A1=8C=20Select=20=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E3=80=8C=E6=96=B0=E5=A2=9E=E3=80=8D=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Select 自带 min-width:160px,原 120px 网格列导致溢出遮挡 - 第三列改为 160px,网格项 min-width:0 - 实测:select 875..1035,按钮 1043..1135,间隔 8px --- stash-web/src/App.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stash-web/src/App.css b/stash-web/src/App.css index 6e4602f..18e65d8 100644 --- a/stash-web/src/App.css +++ b/stash-web/src/App.css @@ -1,4 +1,4 @@ -/* 页面级样式:只保留「组件库没有」的部分(背景、外壳、封面兜底、正文版式)。 +/* 页面级样式:只保留「组件库没有」的部分(背景、外壳、封面兜底、正文版式)。 颜色 / 间距 / 字号全部取自 @stash/ui 的令牌。 */ .app { @@ -959,11 +959,16 @@ .admin-create-row { display: grid; - grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px auto; + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px auto; gap: var(--su-space-2); align-items: center; } +/* Select 自身有 160px 最小宽度,网格项必须允许收缩,否则会盖住「新增」按钮 */ +.admin-create-row > * { + min-width: 0; +} + /* 删除按钮:可删的用危险色,不可删的用弱化色(都取主题令牌) */ .admin-item-actions .admin-remove { color: var(--su-color-danger); @@ -979,3 +984,4 @@ cursor: not-allowed; opacity: 0.45; } +