From d1653ded9a92b746fca908d6ebee422aa72493ab Mon Sep 17 00:00:00 2001 From: aooyoo Date: Tue, 18 Apr 2023 08:13:32 +0000 Subject: [PATCH 1/2] fix user prompt translation --- app/locales/cn.ts | 2 +- app/locales/jp.ts | 6 +++--- app/locales/tw.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 7d011c7f1..1c198195e 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -108,7 +108,7 @@ const cn = { Modal: { Title: "提示词列表", Add: "增加一条", - Search: "搜尋提示詞", + Search: "搜索提示词", }, }, HistoryCount: { diff --git a/app/locales/jp.ts b/app/locales/jp.ts index a793b5fe0..2818820b5 100644 --- a/app/locales/jp.ts +++ b/app/locales/jp.ts @@ -109,9 +109,9 @@ const jp = { `組み込み ${builtin} 件、ユーザー定義 ${custom} 件`, Edit: "編集", Modal: { - Title: "提示词列表", - Add: "增加一条", - Search: "搜尋提示詞", + Title: "プロンプトリスト", + Add: "新規追加", + Search: "プロンプトワード検索", }, }, HistoryCount: { diff --git a/app/locales/tw.ts b/app/locales/tw.ts index 8d79e74fa..44c07898d 100644 --- a/app/locales/tw.ts +++ b/app/locales/tw.ts @@ -108,7 +108,7 @@ const tw: LocaleType = { Modal: { Title: "提示詞列表", Add: "增加一條", - Search: "搜索提示词", + Search: "搜尋提示詞", }, }, HistoryCount: { From dfcae92ae0914004484fc273de3a3ea84f0dd940 Mon Sep 17 00:00:00 2001 From: Ma Yuke Date: Tue, 18 Apr 2023 18:01:09 +0800 Subject: [PATCH 2/2] Update app/components/chat.tsx fix: chat-body flickers when click-and-hold the scroll bar using mouse --- app/components/chat.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 3c66627f6..5dce8fd61 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -708,6 +708,7 @@ export function Chat(props: { className={styles["chat-body"]} ref={scrollRef} onScroll={(e) => onChatBodyScroll(e.currentTarget)} + onMouseDown={() => inputRef.current?.blur()} onWheel={(e) => setAutoScroll(hitBottom && e.deltaY > 0)} onTouchStart={() => { inputRef.current?.blur();