From 6513e5d4e86e55bd7ed1b562666a95ece00231f0 Mon Sep 17 00:00:00 2001 From: butubb <1422726308@qq.com> Date: Sun, 25 Oct 2026 07:44:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(matrix):=20=E6=A0=BC=E5=AD=90=E9=87=8C?= =?UTF-8?q?=E4=B8=BB=E6=89=93=E8=B5=9E/=E8=AF=84=EF=BC=8C=E4=BD=9C?= =?UTF-8?q?=E5=93=81=E6=9D=A1=E6=95=B0=E6=8C=AA=E5=88=B0=E5=B7=A6=E4=B8=8B?= =?UTF-8?q?=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原来的格子里只有条数 + 标签,想看「这条发得怎么样」得一个个悬停。现在 每格直接显示点赞/评论(一万以上缩成 1.2万),作品条数压暗贴左下角; 标签保留在下方。悬停提示不变(仍然有完整指标和逐条标题)。 --- api/reports/matrix.html | 85 +++++++++++++++++++++++++++++++++++------ 1 file changed, 73 insertions(+), 12 deletions(-) diff --git a/api/reports/matrix.html b/api/reports/matrix.html index ccb259e..4a9ed4b 100644 --- a/api/reports/matrix.html +++ b/api/reports/matrix.html @@ -102,21 +102,48 @@ font-weight: 500; } tbody td { + position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); - padding: 5px 8px; + /* 底部留一条给左下角的作品条数,别让它压到标签上。 */ + padding: 4px 8px 15px; white-space: nowrap; vertical-align: top; - min-width: 92px; + min-width: 112px; } tbody tr:hover th, tbody tr:hover td { background: #131c28; } - .count { - display: inline-block; - min-width: 16px; - margin-right: 5px; - color: var(--cyan); + /* 一格的主角:点赞 / 评论。标签是分类,数字才是「这条发得怎么样」。 */ + .cell-metrics { + display: flex; + gap: 8px; + margin-bottom: 2px; font-variant-numeric: tabular-nums; + line-height: 1.4; + } + .cell-metrics span { font-size: 12px; } + .cell-metrics b { + margin-right: 2px; + color: var(--muted); + font-weight: 400; + font-size: 10px; + } + .cell-metrics .like { color: var(--pink); } + .cell-metrics .comment { color: var(--cyan); } + + /* 左下角的作品条数:是参照信息,压暗、贴角,不参与主视觉。 */ + .cell-count { + position: absolute; + left: 5px; + bottom: 1px; + min-width: 14px; + padding: 0 3px; + border-radius: 3px; + background: rgba(123, 139, 163, 0.14); + color: var(--muted); + font-size: 10px; + font-variant-numeric: tabular-nums; + line-height: 1.5; } .tag { display: inline-block; @@ -260,7 +287,8 @@