From db39fbc41917d50a014dcf82ae35846f3f3ec12e Mon Sep 17 00:00:00 2001 From: DDMeaqua Date: Fri, 13 Sep 2024 16:56:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=89=8B=E6=9C=BA=E7=AB=AF=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=BF=AB=E6=8D=B7=E9=94=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index a6fd25d0a1f..e193f72ff9d 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -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); @@ -758,11 +760,13 @@ export function ChatActions(props: { /> )} - props.setShowShortcutKeyModal(true)} - text={Locale.Chat.ShortcutKey.Title} - icon={} - /> + {!isMobileScreen && ( + props.setShowShortcutKeyModal(true)} + text={Locale.Chat.ShortcutKey.Title} + icon={} + /> + )} ); }