Skip to content

Commit db39fbc

Browse files
committed
chore: 手机端隐藏快捷键展示
1 parent 45306bb commit db39fbc

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
@@ -504,6 +504,8 @@ export function ChatActions(props: {
504504
const currentStyle =
505505
chatStore.currentSession().mask.modelConfig?.style ?? "vivid";
506506

507+
const isMobileScreen = useMobileScreen();
508+
507509
useEffect(() => {
508510
const show = isVisionModel(currentModel);
509511
setShowUploadImage(show);
@@ -758,11 +760,13 @@ export function ChatActions(props: {
758760
/>
759761
)}
760762

761-
<ChatAction
762-
onClick={() => props.setShowShortcutKeyModal(true)}
763-
text={Locale.Chat.ShortcutKey.Title}
764-
icon={<ShortcutkeyIcon />}
765-
/>
763+
{!isMobileScreen && (
764+
<ChatAction
765+
onClick={() => props.setShowShortcutKeyModal(true)}
766+
text={Locale.Chat.ShortcutKey.Title}
767+
icon={<ShortcutkeyIcon />}
768+
/>
769+
)}
766770
</div>
767771
);
768772
}

0 commit comments

Comments
 (0)