From 6e220a04a12e7ff12c4639ebacdda010c082e6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=93=B6=E5=86=9B?= Date: Sat, 19 Sep 2026 22:23:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(search):=20=E6=A3=80=E7=B4=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=96=B0=E5=A2=9E=E3=80=8C=E6=8F=8F=E8=BF=B0=E3=80=8D?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 包名后展示 description(超出 230px 省略号,悬停 title 显示全文), 无描述显示 —。移动端表格 min-width 调整为 880px。 --- frontend/src/views/SearchView.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/SearchView.vue b/frontend/src/views/SearchView.vue index 224fe39..c6127f5 100644 --- a/frontend/src/views/SearchView.vue +++ b/frontend/src/views/SearchView.vue @@ -196,6 +196,7 @@ async function onCleanConfirmed(res) { 包名 + 描述 版本数 占用空间 最近更新 @@ -211,6 +212,7 @@ async function onCleanConfirmed(res) { {{ p.name }} + {{ p.description || '—' }} {{ p.versions }} {{ fmtSize(p.size) }} {{ p.lastUpdated || '—' }} @@ -412,6 +414,16 @@ async function onCleanConfirmed(res) { .pkg-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; } .pkg-name .pkg-cell { min-width: 0; } .pkg-cell { font-weight: 600; word-break: break-all; } +.pkg-desc { + display: block; + max-width: 230px; + font-size: 12px; + color: var(--ink-dim); + font-weight: 500; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} .num-cell.over { color: var(--red); } /* 操作列:按钮横排一行,不换行 */ .vtable td:last-child { white-space: nowrap; } @@ -426,6 +438,6 @@ async function onCleanConfirmed(res) { .history-row { width: 100%; } .toolbar { margin: 16px 0 10px; } .vtable { overflow-x: auto; } - .vtable table { min-width: 640px; } + .vtable table { min-width: 880px; } }