forked from admin/PlantAI-rag-new
fix(ui): 文献来源 SourceRow 徽标与标题重叠
r4 #27 把徽标从序号换成 paper_id(12 字符+…),但 ft-ico 仍是 文件树时代的固定 16px——13 个 mono 字符溢出与 ft-name 重叠。 改自适应宽度(width:auto 覆盖 base.css 全局规则,min 16px/ max 96px + ellipsis 截断),badgeTitle 属性保留完整值。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,19 @@ const metaParts = computed(() => {
|
||||
100% { background: color-mix(in srgb, var(--pa-g-to) 6%, transparent); }
|
||||
}
|
||||
.ft-item { display: flex; align-items: flex-start; gap: 8px; }
|
||||
.ft-ico { flex: none; width: 16px; text-align: center; }
|
||||
/* 2026-09-12 缺陷:ft-ico 固定 16px 装不下 paper_id 徽标(12 字符+…),
|
||||
文本溢出与 ft-name 重叠。改自适应宽度 + ellipsis 截断
|
||||
(badgeTitle 属性保留完整值)。 */
|
||||
.ft-ico {
|
||||
flex: none;
|
||||
width: auto; /* 覆盖 base.css .ft-item .ft-ico 的固定 16px——paper_id 徽标需按内容自适应 */
|
||||
min-width: 16px;
|
||||
max-width: 96px;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.idx { color: var(--pa-ink-subtle); font-size: 11px; line-height: 1.7; }
|
||||
.src-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
|
||||
.src-line1 { display: flex; align-items: baseline; min-width: 0; }
|
||||
|
||||
Reference in New Issue
Block a user