From 9d991c7468538e8e8dd3f18661c7a0f5c82580d1 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Fri, 19 Dec 2025 11:18:01 +0800 Subject: [PATCH] perf: enhance chat components with theme and fullscreen toggles (#4116) * perf: enhance chat components with theme and fullscreen toggles - Added theme and fullscreen toggle functionality to Chat.vue and ConversationSidebar.vue. - Introduced a new StyledMenu component for improved dropdown menus. - Updated MessageList.vue and ChatInput.vue for better mobile responsiveness and UI consistency. - Enhanced language switcher integration in ConversationSidebar.vue. - Added new settings translations in English and Chinese locales. * fix: streamline conversation selection handling in Chat.vue - Updated handleSelectConversation function to immediately set the current session ID and selected sessions, reducing the need for multiple clicks. - Adjusted padding in ConversationSidebar.vue for improved layout consistency. --- dashboard/src/components/chat/Chat.vue | 95 +++++---- dashboard/src/components/chat/ChatInput.vue | 6 +- .../components/chat/ConversationSidebar.vue | 182 ++++++++++-------- dashboard/src/components/chat/MessageList.vue | 42 +++- .../components/shared/LanguageSwitcher.vue | 82 ++------ .../src/components/shared/StyledMenu.vue | 79 ++++++++ .../src/i18n/locales/en-US/core/common.json | 1 + .../src/i18n/locales/zh-CN/core/common.json | 1 + 8 files changed, 290 insertions(+), 198 deletions(-) create mode 100644 dashboard/src/components/shared/StyledMenu.vue diff --git a/dashboard/src/components/chat/Chat.vue b/dashboard/src/components/chat/Chat.vue index 5524e787d..a73bad4d1 100644 --- a/dashboard/src/components/chat/Chat.vue +++ b/dashboard/src/components/chat/Chat.vue @@ -18,61 +18,27 @@ @editTitle="showEditTitleDialog" @deleteConversation="handleDeleteConversation" @closeMobileSidebar="closeMobileSidebar" + @toggleTheme="toggleTheme" + @toggleFullscreen="toggleFullscreen" />