Skip to content

Commit

Permalink
chore: 手机端隐藏快捷键展示
Browse files Browse the repository at this point in the history
  • Loading branch information
DDMeaqua committed Sep 13, 2024
1 parent 45306bb commit db39fbc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ export function ChatActions(props: {
const currentStyle =
chatStore.currentSession().mask.modelConfig?.style ?? "vivid";

const isMobileScreen = useMobileScreen();

useEffect(() => {
const show = isVisionModel(currentModel);
setShowUploadImage(show);
Expand Down Expand Up @@ -758,11 +760,13 @@ export function ChatActions(props: {
/>
)}

<ChatAction
onClick={() => props.setShowShortcutKeyModal(true)}
text={Locale.Chat.ShortcutKey.Title}
icon={<ShortcutkeyIcon />}
/>
{!isMobileScreen && (
<ChatAction
onClick={() => props.setShowShortcutKeyModal(true)}
text={Locale.Chat.ShortcutKey.Title}
icon={<ShortcutkeyIcon />}
/>
)}
</div>
);
}
Expand Down

0 comments on commit db39fbc

Please sign in to comment.