From d26cf6939284eeed092b80104d6ae479a469c945 Mon Sep 17 00:00:00 2001 From: ViperEkura <3081035982@qq.com> Date: Tue, 14 Apr 2026 00:26:50 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/App.vue | 10 +- dashboard/src/components/AppHeader.vue | 4 +- dashboard/src/components/MessageNav.vue | 128 ++++ dashboard/src/components/ProcessBlock.vue | 154 ++--- dashboard/src/style.css | 6 +- dashboard/src/views/ConversationsView.vue | 636 ++++++-------------- dashboard/src/views/SettingsView.vue | 683 +++------------------- dashboard/src/views/ToolsView.vue | 17 +- 8 files changed, 466 insertions(+), 1172 deletions(-) create mode 100644 dashboard/src/components/MessageNav.vue diff --git a/dashboard/src/App.vue b/dashboard/src/App.vue index be2e22a..07033b6 100644 --- a/dashboard/src/App.vue +++ b/dashboard/src/App.vue @@ -16,11 +16,15 @@ const { isLoggedIn } = useAuth() diff --git a/dashboard/src/components/AppHeader.vue b/dashboard/src/components/AppHeader.vue index 887db13..928025b 100644 --- a/dashboard/src/components/AppHeader.vue +++ b/dashboard/src/components/AppHeader.vue @@ -83,7 +83,9 @@ const navItems = [ diff --git a/dashboard/src/components/ProcessBlock.vue b/dashboard/src/components/ProcessBlock.vue index 530ad37..c516f5a 100644 --- a/dashboard/src/components/ProcessBlock.vue +++ b/dashboard/src/components/ProcessBlock.vue @@ -8,8 +8,10 @@ 思考中 {{ item.brief || '正在思考...' }} - ... - + + ... + +
{{ item.displayContent }}
@@ -22,10 +24,12 @@ {{ item.name || '工具调用' }} {{ item.brief || '' }} - ... - 成功 - 失败 - + + ... + 成功 + 失败 + +
@@ -264,8 +268,7 @@ const alertIcon = ` diff --git a/dashboard/src/style.css b/dashboard/src/style.css index 82e7954..72a932e 100644 --- a/dashboard/src/style.css +++ b/dashboard/src/style.css @@ -317,14 +317,14 @@ body { .message-bubble.user .message-container { align-items: flex-end; width: fit-content; - max-width: 85%; + max-width: 70%; } .message-bubble.assistant .message-container { align-items: flex-start; flex: 1 1 auto; - width: 80%; - max-width: 80%; + width: 90%; + max-width: 90%; min-width: 0; } diff --git a/dashboard/src/views/ConversationsView.vue b/dashboard/src/views/ConversationsView.vue index aa0b89a..efed03c 100644 --- a/dashboard/src/views/ConversationsView.vue +++ b/dashboard/src/views/ConversationsView.vue @@ -25,8 +25,20 @@
{{ c.model || '-' }}
- - + +
@@ -53,7 +65,7 @@
-
+
{{ msg.role === 'user' ? '👤' : '🤖' }}
@@ -133,15 +145,24 @@
+ + +
diff --git a/dashboard/src/views/SettingsView.vue b/dashboard/src/views/SettingsView.vue index 26d2512..ef7be58 100644 --- a/dashboard/src/views/SettingsView.vue +++ b/dashboard/src/views/SettingsView.vue @@ -459,622 +459,125 @@ onMounted(() => { diff --git a/dashboard/src/views/ToolsView.vue b/dashboard/src/views/ToolsView.vue index 628d635..555572a 100644 --- a/dashboard/src/views/ToolsView.vue +++ b/dashboard/src/views/ToolsView.vue @@ -83,16 +83,31 @@ onMounted(fetchData)