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; } }