chore: 手机端隐藏快捷键展示
This commit is contained in:
parent
45306bbb6c
commit
db39fbc419
|
@ -504,6 +504,8 @@ export function ChatActions(props: {
|
||||||
const currentStyle =
|
const currentStyle =
|
||||||
chatStore.currentSession().mask.modelConfig?.style ?? "vivid";
|
chatStore.currentSession().mask.modelConfig?.style ?? "vivid";
|
||||||
|
|
||||||
|
const isMobileScreen = useMobileScreen();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const show = isVisionModel(currentModel);
|
const show = isVisionModel(currentModel);
|
||||||
setShowUploadImage(show);
|
setShowUploadImage(show);
|
||||||
|
@ -758,11 +760,13 @@ export function ChatActions(props: {
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<ChatAction
|
{!isMobileScreen && (
|
||||||
onClick={() => props.setShowShortcutKeyModal(true)}
|
<ChatAction
|
||||||
text={Locale.Chat.ShortcutKey.Title}
|
onClick={() => props.setShowShortcutKeyModal(true)}
|
||||||
icon={<ShortcutkeyIcon />}
|
text={Locale.Chat.ShortcutKey.Title}
|
||||||
/>
|
icon={<ShortcutkeyIcon />}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue