mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23: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 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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user