From 170dc6e24476da518e947ed9b4d5b10b41d51a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=9C=E8=8F=9C=E9=85=B1?= Date: Fri, 12 Sep 2025 14:19:30 +0800 Subject: [PATCH] style: css --- src/components/TemplateCard/index.tsx | 4 +++- src/pages/history/index.config.ts | 2 +- src/pages/history/index.css | 27 ++++++++++++--------------- src/pages/history/index.tsx | 6 ++++-- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/components/TemplateCard/index.tsx b/src/components/TemplateCard/index.tsx index 3b14181..a81faeb 100644 --- a/src/components/TemplateCard/index.tsx +++ b/src/components/TemplateCard/index.tsx @@ -159,7 +159,9 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) { {/* 模板名称悬浮 - 图片底部 */} - {template.name} + ✨{template.name} + + 内容由AI生成 diff --git a/src/pages/history/index.config.ts b/src/pages/history/index.config.ts index ce6c61f..a3ac056 100644 --- a/src/pages/history/index.config.ts +++ b/src/pages/history/index.config.ts @@ -1,5 +1,5 @@ export default definePageConfig({ - navigationBarTitleText: '我的作品', + navigationBarTitleText: '', navigationBarBackgroundColor: '#ffffff', navigationBarTextStyle: 'black', backgroundColorTop: '#ffffff', diff --git a/src/pages/history/index.css b/src/pages/history/index.css index 3b101f9..a97e8c2 100644 --- a/src/pages/history/index.css +++ b/src/pages/history/index.css @@ -4,7 +4,15 @@ display: flex; flex-direction: column; } - +.history-header { + padding: 32px 0; +} +.history-title { + font-size: 48px; + font-weight: 500; + color: #1D1F22; + padding: 0 32px; +} .history-list { height: 100vh; padding: 0; @@ -57,20 +65,9 @@ margin-bottom: 16px; } -.empty-desc { - font-size: 28px; - color: #666; - display: block; - opacity: 0.8; - line-height: 1.6; - white-space: pre-line; - text-align: center; -} - .history-item { - background: #fff; border-radius: 12px; - padding: 20px; + padding: 8px 20px; margin-bottom: 8px; display: flex; align-items: center; @@ -137,7 +134,7 @@ .item-title { font-size: 28px; font-weight: 600; - color: #333; + color: #1D1F22; flex: 1; overflow: hidden; text-overflow: ellipsis; @@ -236,7 +233,7 @@ .item-time { font-size: 22px; - color: #999; + color: #B9B9B9; font-weight: 400; opacity: 0.7; } diff --git a/src/pages/history/index.tsx b/src/pages/history/index.tsx index aa204a0..0fffb41 100644 --- a/src/pages/history/index.tsx +++ b/src/pages/history/index.tsx @@ -118,6 +118,9 @@ export default function History() { return ( + {/* + 我的作品 + */} { const progress = calculateProgress(record); const isGenerating = record.status === 'processing'; - return ( handleItemClick(record)}> @@ -156,7 +158,7 @@ export default function History() { -