feat(matrix): 一格只有一条作品时也显示标题和标签
逐条明细原来只在 details.length > 1 时出现,于是「一天只发了一条」的格子 悬停看不到标题 —— 而标题恰恰是最想看的东西。
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user