diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 9f04acb4..a8c4f25f 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -481,6 +481,11 @@ "websearch": "WebSearch", "edit": "Edit Model" }, + "navbar": { + "expand": "Expand Dialog", + "show_sidebar": "Show Sidebar", + "hide_sidebar": "Hide Sidebar" + }, "ollama": { "keep_alive_time.description": "The time in minutes to keep the connection alive, default is 5 minutes.", "keep_alive_time.placeholder": "Minutes", diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json index 5854f164..bc76be3d 100644 --- a/src/renderer/src/i18n/locales/ja-jp.json +++ b/src/renderer/src/i18n/locales/ja-jp.json @@ -481,6 +481,11 @@ "websearch": "ウェブ検索", "edit": "モデルを編集" }, + "navbar": { + "expand": "ダイアログを展開", + "show_sidebar": "サイドバーを表示", + "hide_sidebar": "サイドバーを非表示" + }, "ollama": { "keep_alive_time.description": "モデルがメモリに保持される時間(デフォルト:5分)", "keep_alive_time.placeholder": "分", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index c3e8409b..2b8b218c 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -481,6 +481,11 @@ "websearch": "Веб-поисковые", "edit": "Редактировать модель" }, + "navbar": { + "expand": "Развернуть диалоговое окно", + "show_sidebar": "Показать боковую панель", + "hide_sidebar": "Скрыть боковую панель" + }, "ollama": { "keep_alive_time.description": "Время в минутах, в течение которого модель остается активной, по умолчанию 5 минут.", "keep_alive_time.placeholder": "Минуты", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 7a889203..88558f48 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -481,6 +481,11 @@ "websearch": "联网", "edit": "编辑模型" }, + "navbar": { + "expand": "伸缩对话框", + "show_sidebar": "显示侧边栏", + "hide_sidebar": "隐藏侧边栏" + }, "ollama": { "keep_alive_time.description": "对话后模型在内存中保持的时间(默认:5分钟)", "keep_alive_time.placeholder": "分钟", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 9a6a4255..0cb669e2 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -481,6 +481,11 @@ "websearch": "網路搜索", "edit": "編輯模型" }, + "navbar": { + "expand": "伸縮對話框", + "show_sidebar": "顯示側邊欄", + "hide_sidebar": "隱藏側邊欄" + }, "ollama": { "keep_alive_time.description": "對話後模型在記憶體中保持的時間(預設為 5 分鐘)。", "keep_alive_time.placeholder": "分鐘", diff --git a/src/renderer/src/pages/home/Navbar.tsx b/src/renderer/src/pages/home/Navbar.tsx index 34895581..68923a07 100644 --- a/src/renderer/src/pages/home/Navbar.tsx +++ b/src/renderer/src/pages/home/Navbar.tsx @@ -14,6 +14,8 @@ import { EVENT_NAMES, EventEmitter } from '@renderer/services/EventService' import { useAppDispatch } from '@renderer/store' import { setNarrowMode } from '@renderer/store/settings' import { Assistant, Topic } from '@renderer/types' +import { Tooltip } from 'antd' +import { t } from 'i18next' import { FC } from 'react' import styled from 'styled-components' @@ -58,12 +60,16 @@ const HeaderNavbar: FC = ({ activeAssistant }) => { {showAssistants && ( - - - - EventEmitter.emit(EVENT_NAMES.ADD_NEW_TOPIC)}> - - + + + + + + + EventEmitter.emit(EVENT_NAMES.ADD_NEW_TOPIC)}> + + + )} = ({ activeAssistant }) => { className="home-navbar-right"> {!showAssistants && ( - toggleShowAssistants()} style={{ marginRight: 8, marginLeft: isMac ? 4 : -12 }}> - - + + toggleShowAssistants()} + style={{ marginRight: 8, marginLeft: isMac ? 4 : -12 }}> + + + )} = ({ activeAssistant }) => { - SearchPopup.show()}> - - - - - + + SearchPopup.show()}> + + + + + + + + {sidebarIcons.visible.includes('minapp') && ( - - - + + + + + )} {topicPosition === 'right' && (