Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#5419 from DDMeaqua/feat-shortcutkey
Browse files Browse the repository at this point in the history
chore: 手机端隐藏快捷键展示
  • Loading branch information
lloydzhou authored Sep 13, 2024
2 parents affc194 + db39fbc commit 57fcda8
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 @@ -507,6 +507,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 @@ -761,11 +763,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 57fcda8

Please sign in to comment.