From b625562c9a24a852977348d2662d4ca5b4d5ec96 Mon Sep 17 00:00:00 2001 From: Rogee Date: Mon, 28 Sep 2026 11:57:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E4=BD=9C=E5=93=81=E5=8D=A1?= =?UTF-8?q?=E6=8C=87=E6=A0=87=20GRID=20=E4=B8=8A=E7=A7=BB=E8=87=B3?= =?UTF-8?q?=E5=B0=81=E9=9D=A2=E6=AD=A3=E4=B8=8B=E6=96=B9=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=8A=E6=96=B9=EF=BC=8CICON=20=E7=A7=BB=E5=88=B0=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E4=B8=8B=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - WorkStatsGrid 移到卡片 body 顶部(紧贴封面边框行),标题/描述/发布时间在其下 - 每列改为数字在上(14px 加粗)、图标+标签在下(11px 辅助色),单列纵向展示 - 单测断言同步更新,node --test 4 例全绿,tsc/antd lint 通过 --- web/tests/works-gallery-card.test.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/tests/works-gallery-card.test.cjs b/web/tests/works-gallery-card.test.cjs index 494b2bc..489bd24 100644 --- a/web/tests/works-gallery-card.test.cjs +++ b/web/tests/works-gallery-card.test.cjs @@ -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(); } +