Skip to content

Commit

Permalink
删减了输入框的提示字,调整手机上发送的按钮和输入框下的提示字
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhentech committed Jan 21, 2025
1 parent 756add9 commit 59a1f44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,11 @@ function _Chat() {
id="chat-input"
ref={inputRef}
className={styles["chat-input"]}
placeholder={Locale.Chat.Input(submitKey)}
placeholder={
isMobileScreen
? Locale.Chat.MobileInput
: Locale.Chat.Input(submitKey)
}
onInput={(e) => onInput(e.currentTarget.value)}
value={userInput}
onKeyDown={onInputKeyDown}
Expand Down Expand Up @@ -2079,7 +2083,7 @@ function _Chat() {
)}
<IconButton
icon={<SendWhiteIcon />}
text={Locale.Chat.Send}
text={isMobileScreen ? undefined : Locale.Chat.Send}
className={styles["chat-input-send"]}
type="primary"
onClick={() => doSubmit(userInput)}
Expand Down
3 changes: 2 additions & 1 deletion app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ const cn = {
if (submitKey === String(SubmitKey.Enter)) {
inputHints += ",Shift + Enter 换行";
}
return inputHints + ",/ 触发补全,: 触发命令";
return inputHints;
},
MobileInput: "输入消息...",
Send: "发送",
StartSpeak: "说话",
StopSpeak: "停止",
Expand Down
3 changes: 2 additions & 1 deletion app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ const en: LocaleType = {
if (submitKey === String(SubmitKey.Enter)) {
inputHints += ", Shift + Enter to wrap";
}
return inputHints + ", / to search prompts, : to use commands";
return inputHints;
},
MobileInput: "Type a message...",
Send: "Send",
StartSpeak: "Start Speak",
StopSpeak: "Stop Speak",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"package": {
"productName": "NeatChat",
"version": "1.1.10-preview.1"
"version": "1.1.10-preview.2"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 59a1f44

Please sign in to comment.