From 8d115f8f1cb892ebe39ec0a6f48f4d4b92da0c90 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 12 Sep 2026 18:38:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20SourceRow=20=E5=BE=BD=E6=A0=87?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E7=BA=A7=E8=81=94=E4=BF=AE=E6=AD=A3(?= =?UTF-8?q?=E7=89=B9=E5=BC=82=E6=80=A7=E6=8F=90=E5=8D=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一提交的 .ft-ico width:auto 与 base.css 的 .ft-item .ft-ico width:16px 特异性同为(0,2,0),bundle 中后者后发胜出,徽标仍被 裁成 16px。改 .source-row .ft-ico 提升特异性,生产实测徽标宽度 16px→86px,完整显示 paper_id 截断文本,与标题 8px gap 零重叠。 Co-Authored-By: Claude Fable 5 --- ui/src/components/bench/SourceRow.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/bench/SourceRow.vue b/ui/src/components/bench/SourceRow.vue index 0dc2cad..95410f6 100644 --- a/ui/src/components/bench/SourceRow.vue +++ b/ui/src/components/bench/SourceRow.vue @@ -122,9 +122,9 @@ const metaParts = computed(() => { /* 2026-09-12 缺陷:ft-ico 固定 16px 装不下 paper_id 徽标(12 字符+…), 文本溢出与 ft-name 重叠。改自适应宽度 + ellipsis 截断 (badgeTitle 属性保留完整值)。 */ -.ft-ico { +.source-row .ft-ico { flex: none; - width: auto; /* 覆盖 base.css .ft-item .ft-ico 的固定 16px——paper_id 徽标需按内容自适应 */ + width: auto; /* 覆盖 base.css .ft-item .ft-ico 的固定 16px——特异性(0,2,0)同级、需用 .source-row .ft-ico 更胜 */ min-width: 16px; max-width: 96px; text-align: left;