mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	Merge pull request #5419 from DDMeaqua/feat-shortcutkey
chore: 手机端隐藏快捷键展示
This commit is contained in:
		@@ -507,6 +507,8 @@ export function ChatActions(props: {
 | 
			
		||||
  const currentStyle =
 | 
			
		||||
    chatStore.currentSession().mask.modelConfig?.style ?? "vivid";
 | 
			
		||||
 | 
			
		||||
  const isMobileScreen = useMobileScreen();
 | 
			
		||||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    const show = isVisionModel(currentModel);
 | 
			
		||||
    setShowUploadImage(show);
 | 
			
		||||
@@ -761,11 +763,13 @@ export function ChatActions(props: {
 | 
			
		||||
        />
 | 
			
		||||
      )}
 | 
			
		||||
 | 
			
		||||
      <ChatAction
 | 
			
		||||
        onClick={() => props.setShowShortcutKeyModal(true)}
 | 
			
		||||
        text={Locale.Chat.ShortcutKey.Title}
 | 
			
		||||
        icon={<ShortcutkeyIcon />}
 | 
			
		||||
      />
 | 
			
		||||
      {!isMobileScreen && (
 | 
			
		||||
        <ChatAction
 | 
			
		||||
          onClick={() => props.setShowShortcutKeyModal(true)}
 | 
			
		||||
          text={Locale.Chat.ShortcutKey.Title}
 | 
			
		||||
          icon={<ShortcutkeyIcon />}
 | 
			
		||||
        />
 | 
			
		||||
      )}
 | 
			
		||||
    </div>
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user