From c9099ca0a5c86ccdcbfd7134daca62f067ca95aa Mon Sep 17 00:00:00 2001 From: lyf <1910527151@qq.com> Date: Wed, 7 Aug 2024 10:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E9=9A=9C=E7=A2=8D=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=92=8C=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/button.tsx | 10 +++++++++- app/components/chat.tsx | 5 +++++ app/components/sidebar.tsx | 12 ++++++++++-- app/locales/cn.ts | 1 + 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/app/components/button.tsx b/app/components/button.tsx index c6039acc292..87b4abd30f9 100644 --- a/app/components/button.tsx +++ b/app/components/button.tsx @@ -18,6 +18,7 @@ export function IconButton(props: { tabIndex?: number; autoFocus?: boolean; style?: CSSProperties; + aria?: string; }) { return ( ); diff --git a/app/components/chat.tsx b/app/components/chat.tsx index e4ba869c3bf..b18c86708a7 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1337,6 +1337,8 @@ function _Chat() { } bordered + title={Locale.Chat.EditMessage.Title} + aria={Locale.Chat.EditMessage.Title} onClick={() => setIsEditingMessage(true)} /> @@ -1356,6 +1358,8 @@ function _Chat() { : } bordered + title={Locale.Chat.Actions.FullScreen} + aria={Locale.Chat.Actions.FullScreen} onClick={() => { config.update( (config) => (config.tightBorder = !config.tightBorder), @@ -1407,6 +1411,7 @@ function _Chat() {
} + aria={Locale.Chat.Actions.Edit} onClick={async () => { const newMessage = await showPrompt( Locale.Chat.Actions.Edit, diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index d8def056e52..4ec0f8c84f5 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -297,12 +297,20 @@ export function SideBar(props: { className?: string }) {
- } shadow /> + } + shadow + />
- } shadow /> + } + shadow + />
diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 4f47403abe2..4db555422c9 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -42,6 +42,7 @@ const cn = { PinToastAction: "查看", Delete: "删除", Edit: "编辑", + FullScreen: "全屏", }, Commands: { new: "新建聊天",