fix: upload button tooltip

This commit is contained in:
kangfenmao 2025-02-11 16:34:26 +08:00
parent cb88a48d8b
commit bae76f921b
6 changed files with 12 additions and 4 deletions

View File

@ -88,6 +88,7 @@
"input.topics": " Topics ",
"input.translate": "Translate to {{target_language}}",
"input.upload": "Upload image or document file",
"input.upload.document": "Upload document file (model does not support images)",
"input.web_search": "Enable web search",
"input.knowledge_base": "Knowledge Base",
"message.new.branch": "New Branch",

View File

@ -83,6 +83,7 @@
"input.topics": " トピック ",
"input.translate": "{{target_language}}に翻訳",
"input.upload": "画像またはドキュメントをアップロード",
"input.upload.document": "ドキュメントをアップロード(モデルは画像をサポートしません)",
"input.web_search": "ウェブ検索を有効にする",
"input.knowledge_base": "ナレッジベース",
"message.new.branch": "新しいブランチ",

View File

@ -83,6 +83,7 @@
"input.topics": " Топики ",
"input.translate": "Перевести на {{target_language}}",
"input.upload": "Загрузить изображение или документ",
"input.upload.document": "Загрузить документ (модель не поддерживает изображения)",
"input.web_search": "Включить веб-поиск",
"input.knowledge_base": "База знаний",
"message.new.branch": "Новая ветка",

View File

@ -88,6 +88,7 @@
"input.topics": " 话题 ",
"input.translate": "翻译成{{target_language}}",
"input.upload": "上传图片或文档",
"input.upload.document": "上传文档(模型不支持图片)",
"input.web_search": "开启网络搜索",
"input.knowledge_base": "知识库",
"message.new.branch": "分支",
@ -427,9 +428,9 @@
"webdav.noSync": "等待下次备份",
"webdav.syncError": "备份错误",
"webdav.lastSync": "上次备份时间",
"notion.api_key":"Notion 密钥",
"notion.database_id":"Notion 数据库ID",
"notion.title":"Notion 配置"
"notion.api_key": "Notion 密钥",
"notion.database_id": "Notion 数据库ID",
"notion.title": "Notion 配置"
},
"quickAssistant": {
"title": "快捷助手",

View File

@ -88,6 +88,7 @@
"input.topics": " 話題 ",
"input.translate": "翻譯成{{target_language}}",
"input.upload": "上傳圖片或文檔",
"input.upload.document": "上傳文檔(模型不支持圖片)",
"input.web_search": "開啟網路搜索",
"input.knowledge_base": "知識庫",
"message.new.branch": "分支",

View File

@ -37,7 +37,10 @@ const AttachmentButton: FC<Props> = ({ model, files, setFiles, ToolbarButton, di
}
return (
<Tooltip placement="top" title={t('chat.input.upload')} arrow>
<Tooltip
placement="top"
title={isVisionModel(model) ? t('chat.input.upload') : t('chat.input.upload.document')}
arrow>
<ToolbarButton type="text" className={files.length ? 'active' : ''} onClick={onSelectFile} disabled={disabled}>
<PaperClipOutlined style={{ rotate: '135deg' }} />
</ToolbarButton>