Skip to content

Commit 57fcda8

Browse files
authored
Merge pull request #5419 from DDMeaqua/feat-shortcutkey
chore: 手机端隐藏快捷键展示
2 parents affc194 + db39fbc commit 57fcda8

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

app/components/chat.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@ export function ChatActions(props: {
507507
const currentStyle =
508508
chatStore.currentSession().mask.modelConfig?.style ?? "vivid";
509509

510+
const isMobileScreen = useMobileScreen();
511+
510512
useEffect(() => {
511513
const show = isVisionModel(currentModel);
512514
setShowUploadImage(show);
@@ -761,11 +763,13 @@ export function ChatActions(props: {
761763
/>
762764
)}
763765

764-
<ChatAction
765-
onClick={() => props.setShowShortcutKeyModal(true)}
766-
text={Locale.Chat.ShortcutKey.Title}
767-
icon={<ShortcutkeyIcon />}
768-
/>
766+
{!isMobileScreen && (
767+
<ChatAction
768+
onClick={() => props.setShowShortcutKeyModal(true)}
769+
text={Locale.Chat.ShortcutKey.Title}
770+
icon={<ShortcutkeyIcon />}
771+
/>
772+
)}
769773
</div>
770774
);
771775
}

0 commit comments

Comments
 (0)