From cdf000960286811eb726634c71e315e9b2cc2eda Mon Sep 17 00:00:00 2001 From: ittoview Date: Sun, 8 Mar 2026 03:46:11 +0000 Subject: [PATCH] =?UTF-8?q?style(=E6=95=B4=E5=90=88):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=A5=E6=9C=9F=E6=9B=B4=E6=96=B0=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=B8=BA=E5=8D=95=E5=8D=A1=E7=89=87=E8=A1=8C=E5=BC=8F=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit via [HAPI](https://hapi.run) Co-Authored-By: HAPI --- src/components/ChangelogModal.tsx | 51 ++++++++++++++++--------------- src/data/changelog.json | 7 +++++ 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/src/components/ChangelogModal.tsx b/src/components/ChangelogModal.tsx index 2965780..6cd3a99 100644 --- a/src/components/ChangelogModal.tsx +++ b/src/components/ChangelogModal.tsx @@ -127,40 +127,41 @@ export function ChangelogModal({ isOpen, onClose }: ChangelogModalProps) {
- {/* 该日期下的更新列表 */} -
+ {/* 该日期下的更新列表 - 统一卡片 */} + {entries.map((entry, index) => { const meta = typeMeta[entry.type] return ( - - {/* 标签行 */} -
- {/* 类型标签 */} - - - {meta.label} - - - {/* 范围标签 */} - {entry.scope && ( - - {entry.scope} +
+ {/* 标签 */} +
+ + + {meta.label} - )} -
+ {entry.scope && ( + + {entry.scope} + + )} +
- {/* 标题 */} -

- {entry.title} -

- + {/* 标题 */} +

+ {entry.title} +

+
+
) })} - + ))} diff --git a/src/data/changelog.json b/src/data/changelog.json index 80705b5..ddf9c13 100644 --- a/src/data/changelog.json +++ b/src/data/changelog.json @@ -1,5 +1,12 @@ { "changelogEntries": [ + { + "id": "2026-03-08-changelog-unified-card", + "date": "2026-03-08", + "type": "style", + "title": "优化更新日志显示,同日期更新合并为单卡片行式布局", + "scope": "整合" + }, { "id": "2026-03-08-fix-modal-portal", "date": "2026-03-08",