feat: disable auto focus on mobile screen

This commit is contained in:
Yidadaa 2023-08-04 02:43:55 +08:00
parent bc5ddc4541
commit 3e63f6ba34

View File

@ -965,10 +965,7 @@ function _Chat() {
const clientConfig = useMemo(() => getClientConfig(), []);
const location = useLocation();
const isChat = location.pathname === Path.Chat;
const autoFocus = !isMobileScreen || isChat; // only focus in chat page
const autoFocus = !isMobileScreen; // wont auto focus on mobile screen
const showMaxIcon = !isMobileScreen && !clientConfig?.isApp;
useCommand({