Merge pull request #2557 from Yidadaa/bugfix-0804

feat: disable auto focus on mobile screen
This commit is contained in:
Yifei Zhang 2023-08-04 02:45:19 +08:00 committed by GitHub
commit ff6f0e9546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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({