diff --git a/web/src/components/creator/WorksGallery.tsx b/web/src/components/creator/WorksGallery.tsx index dceb41c..e2a704b 100644 --- a/web/src/components/creator/WorksGallery.tsx +++ b/web/src/components/creator/WorksGallery.tsx @@ -44,7 +44,7 @@ export function WorkCover({ workID, title }: { workID: string; title?: string }) ); } -// 观看/点赞/评论/分享全宽四列 GRID,贴在封面下方(body padding 置 0,本行自带上下边框)。 +// 观看/点赞/评论/分享全宽四列 GRID,紧贴封面(卡片 body 顶部,本行自带上下边框)。 function WorkStatsGrid({ work }: { work: any }) { const items = [ { key: 'play_count', label: '观看', icon: EyeOutlined }, @@ -53,15 +53,15 @@ function WorkStatsGrid({ work }: { work: any }) { { key: 'shares', label: '分享', icon: ShareAltOutlined }, ]; return ( - + {items.map(({ key, label, icon: Icon }) => ( - - - {label} - - + + {work[key] ?? '—'} + + {label} + ))} @@ -96,7 +96,7 @@ function GrowthChart({ metrics }: { metrics: any[] }) { data={data} xField="time" yField="value" - seriesField="metric" + colorField="metric" height={240} yAxis={{ labelFormatter: (v: number) => (v >= 10000 ? `${(v / 10000).toFixed(1)}w` : `${v}`) }} legend={{ position: 'top' }} @@ -231,7 +231,8 @@ export default function WorksGallery({ sourceId, sourceType, emptyHint }: WorksG onClick={() => openWorkDetail(work)} cover={} > -
+ +
{work.title || '无标题'} @@ -246,7 +247,6 @@ export default function WorksGallery({ sourceId, sourceType, emptyHint }: WorksG
- {work.likes_growth != null && work.likes_growth > 0 ? ( 24h +{work.likes_growth} diff --git a/web/src/pages/accounts/$id/index.tsx b/web/src/pages/accounts/$id/index.tsx index afd01a9..bd2e9fd 100644 --- a/web/src/pages/accounts/$id/index.tsx +++ b/web/src/pages/accounts/$id/index.tsx @@ -52,7 +52,7 @@ function AccountTrendChart({ metrics }: { metrics: any[] }) { data={data} xField="time" yField="value" - seriesField="metric" + colorField="metric" height={240} yAxis={{ labelFormatter: (v: number) => (v >= 10000 ? `${(v / 10000).toFixed(1)}w` : `${v}`) }} legend={{ position: 'top' }}