feat(matrix): 一格只有一条作品时也显示标题和标签
Deploy VitePress site to Pages / build (push) Canceled after 0s
Deploy VitePress site to Pages / Deploy (push) Canceled after 0s

逐条明细原来只在 details.length > 1 时出现,于是「一天只发了一条」的格子
悬停看不到标题 —— 而标题恰恰是最想看的东西。
This commit is contained in:
2026-10-25 07:43:22 +08:00
parent e87c3a8560
commit 1353a26def
+3 -2
View File
@@ -353,9 +353,10 @@
'标签:' + (cell.tags && cell.tags.length ? cell.tags.join(' / ') : '无标签');
tip.appendChild(tags);
// 一格合并了多条作品时,并集看不出「哪个标签属于哪条视频」,逐条列出来。
// 逐条列出作品标题和它自己的标签。并集看不出「哪个标签属于哪条视频」,
// 一条作品时也一样 —— 标题本身就是要看的东西,不能只在两条以上时才给。
const details = cell.details || [];
if (details.length > 1) {
if (details.length > 0) {
const list = document.createElement('div');
list.className = 'tip-notes';
const limit = 12;