From 16e07bcc9b4be41616c22c22f1ae3e11b94d086f Mon Sep 17 00:00:00 2001 From: ekko Date: Fri, 17 Apr 2026 08:37:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20dark=20theme=20polish=20=E2=80=94=20fix?= =?UTF-8?q?=20sidebar=20layout,=20update=20button,=20chat=20input=20&=20th?= =?UTF-8?q?eme=20switching?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix sidebar footer layout: separate update button from version row - Replace custom update-hint with NButton for proper dark mode support - Darken chat input background in dark theme for better contrast - Fix system theme listener always applying dark mode Co-Authored-By: Claude Opus 4.6 --- package.json | 4 +-- .../src/components/hermes/chat/ChatInput.vue | 6 +++- .../src/components/layout/AppSidebar.vue | 33 +++++-------------- packages/client/src/composables/useTheme.ts | 2 +- 4 files changed, 16 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index 248c7f0..061b522 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hermes-web-ui", - "version": "0.2.9", + "version": "0.3.0", "description": "Web dashboard for Hermes Agent — multi-platform AI chat, session management, scheduled jobs, usage analytics & channel configuration (Telegram, Discord, Slack, WhatsApp)", "repository": { "type": "git", @@ -92,4 +92,4 @@ "vitest": "^3.2.4", "vue-tsc": "^3.2.6" } -} +} \ No newline at end of file diff --git a/packages/client/src/components/hermes/chat/ChatInput.vue b/packages/client/src/components/hermes/chat/ChatInput.vue index 7f0390c..f3e1fcd 100644 --- a/packages/client/src/components/hermes/chat/ChatInput.vue +++ b/packages/client/src/components/hermes/chat/ChatInput.vue @@ -356,11 +356,15 @@ function isImage(type: string): boolean { border: 1px solid $border-color; border-radius: $radius-md; padding: 10px 12px; - transition: border-color $transition-fast; + transition: border-color $transition-fast, background-color $transition-fast; &:focus-within { border-color: $accent-primary; } + + .dark & { + background-color: #333333; + } } .input-textarea { diff --git a/packages/client/src/components/layout/AppSidebar.vue b/packages/client/src/components/layout/AppSidebar.vue index ed4933f..3bb7b8e 100644 --- a/packages/client/src/components/layout/AppSidebar.vue +++ b/packages/client/src/components/layout/AppSidebar.vue @@ -1,8 +1,8 @@