mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 04:02:41 +08:00
feat: disable auto focus on mobile screen
This commit is contained in:
@@ -965,10 +965,7 @@ function _Chat() {
|
|||||||
|
|
||||||
const clientConfig = useMemo(() => getClientConfig(), []);
|
const clientConfig = useMemo(() => getClientConfig(), []);
|
||||||
|
|
||||||
const location = useLocation();
|
const autoFocus = !isMobileScreen; // wont auto focus on mobile screen
|
||||||
const isChat = location.pathname === Path.Chat;
|
|
||||||
|
|
||||||
const autoFocus = !isMobileScreen || isChat; // only focus in chat page
|
|
||||||
const showMaxIcon = !isMobileScreen && !clientConfig?.isApp;
|
const showMaxIcon = !isMobileScreen && !clientConfig?.isApp;
|
||||||
|
|
||||||
useCommand({
|
useCommand({
|
||||||
|
Reference in New Issue
Block a user