feat(dnfs): 卡片增加观看/点赞/分享互动统计图标

- dnfs.js: 新增眼睛/爱心/转发 SVG 图标常量与 makeStatItem 构造函数,
  统计行挂载在 owner 胶囊下方,计数缺省显示 0(后端暂无该字段)
- theme.css: 新增 card-stats/stat-item/stat-num 样式
This commit is contained in:
qing committed 2026-07-29 10:59:40 +08:00
1 parent dae81ba4a1
commit 2fc12e7b00
2 files changed
+50 -9

No files matched your search

+26
View File
@@ -256,6 +256,32 @@ input[type="button"]:disabled {
white-space: nowrap;
}
/* ===== Card Stats (dnfs 互动统计:观看/点赞/分享) ===== */
.card-stats {
display: flex;
align-items: center;
justify-content: center;
gap: 1.1rem;
margin-top: 0.45rem;
}
.stat-item {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.78rem;
color: var(--muted);
}
.stat-item svg {
width: 14px;
height: 14px;
flex-shrink: 0;
}
.stat-num {
font-weight: 600;
color: var(--fg-secondary);
font-variant-numeric: tabular-nums;
}
/* ===== Minimap (dnfs) ===== */
.minimap {
position: fixed;