From 7f170b76587a3ba73686a1d6189324d2ee0862dd Mon Sep 17 00:00:00 2001 From: YuTengjing Date: Wed, 25 Mar 2026 17:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20fix=20notification=20i1?= =?UTF-8?q?8n=20flat=20keys,=20badge=20clipping,=20and=20multi-line=20cont?= =?UTF-8?q?ent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en-US/notification.json | 8 +++----- locales/zh-CN/notification.json | 8 +++----- src/features/NavPanel/SideBarHeaderLayout.tsx | 10 +--------- .../Header/components/InboxDrawer/NotificationItem.tsx | 2 +- 4 files changed, 8 insertions(+), 20 deletions(-) diff --git a/locales/en-US/notification.json b/locales/en-US/notification.json index c174cc2c33..31839eaa35 100644 --- a/locales/en-US/notification.json +++ b/locales/en-US/notification.json @@ -1,11 +1,9 @@ { "image_generation_completed": "Image \"{{prompt}}\" generated successfully", "image_generation_completed_title": "Image Generated", - "inbox": { - "empty": "No notifications yet", - "markAllRead": "Mark all as read", - "title": "Notifications" - }, + "inbox.empty": "No notifications yet", + "inbox.markAllRead": "Mark all as read", + "inbox.title": "Notifications", "video_generation_completed": "Video \"{{prompt}}\" generated successfully", "video_generation_completed_title": "Video Generated" } diff --git a/locales/zh-CN/notification.json b/locales/zh-CN/notification.json index 9682da48fb..17679a431d 100644 --- a/locales/zh-CN/notification.json +++ b/locales/zh-CN/notification.json @@ -1,11 +1,9 @@ { "image_generation_completed": "图片 \"{{prompt}}\" 已生成完成", "image_generation_completed_title": "图片已生成", - "inbox": { - "empty": "暂无通知", - "markAllRead": "全部标为已读", - "title": "通知" - }, + "inbox.empty": "暂无通知", + "inbox.markAllRead": "全部标为已读", + "inbox.title": "通知", "video_generation_completed": "视频 \"{{prompt}}\" 已生成完成", "video_generation_completed_title": "视频已生成" } diff --git a/src/features/NavPanel/SideBarHeaderLayout.tsx b/src/features/NavPanel/SideBarHeaderLayout.tsx index fabed7e338..999df3e4fb 100644 --- a/src/features/NavPanel/SideBarHeaderLayout.tsx +++ b/src/features/NavPanel/SideBarHeaderLayout.tsx @@ -128,15 +128,7 @@ const SideBarHeaderLayout = memo( padding={6} > {leftContent} - + {showTogglePanelButton && } {right} diff --git a/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx b/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx index 790af76a88..5e76f19033 100644 --- a/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx +++ b/src/routes/(main)/home/_layout/Header/components/InboxDrawer/NotificationItem.tsx @@ -109,7 +109,7 @@ const NotificationItem = memo( - + {content}