fix(web): 作品卡指标 GRID 上移至封面正下方内容上方,ICON 移到数字下方
douyin-release-gate / verify (push) Failing after 3m13s

- WorkStatsGrid 移到卡片 body 顶部(紧贴封面边框行),标题/描述/发布时间在其下
- 每列改为数字在上(14px 加粗)、图标+标签在下(11px 辅助色),单列纵向展示
- 单测断言同步更新,node --test 4 例全绿,tsc/antd lint 通过
This commit is contained in:
2026-09-28 11:57:46 +08:00
parent 77e79982fa
commit b625562c9a
+2 -1
View File
@@ -20,7 +20,7 @@ test('作品卡片封面读本地缓存 /works/:id/cover(签名 URL 会过期
test('观看/点赞/评论/分享四项指标全宽 GRID 贴封面下方', () => {
const grid = /function WorkStatsGrid/.exec(sourceText());
assert.ok(grid, '应有 WorkStatsGrid 组件');
const body = sourceText().slice(grid.index, grid.index + 1200);
const body = sourceText().slice(grid.index, grid.index + 1300);
for (const key of ['play_count', 'likes', 'comments_count', 'shares']) {
assert.match(body, new RegExp(key), `GRID 应包含指标 ${key}`);
}
@@ -40,3 +40,4 @@ test('卡片展示作品描述(body 省略两行)', () => {
function sourceText() {
return source.getFullText();
}