From 1a11e33749cafa891b9ced1a9f7d22b816bd0efb Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Sat, 31 May 2025 03:25:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(MessageContent):=20unify?= =?UTF-8?q?=20thinking=20section=20color=20scheme=20with=20PersonalSetting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace pink-purple gradient with indigo-purple gradient to match PersonalSetting.js color scheme - Update icon container gradient from purple-indigo to indigo-purple for consistency - Enhance shadow effects from shadow-sm to shadow-lg to align with card design standards - Improve hover effects with refined opacity and smoother transitions (duration-300) - Increase content background opacity from 70% to 80% for better readability - Update scrollbar color to purple theme (rgba(139, 92, 246, 0.3)) - Standardize border radius to rounded-xl for unified styling - Apply consistent styling to "thinking in progress" state with matching gradient background This change ensures visual consistency across the application by adopting the same purple-blue color palette used in PersonalSetting component, creating a more cohesive user experience. --- .../components/playground/MessageContent.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/web/src/components/playground/MessageContent.js b/web/src/components/playground/MessageContent.js index 77b10c5a..f9a84da0 100644 --- a/web/src/components/playground/MessageContent.js +++ b/web/src/components/playground/MessageContent.js @@ -136,8 +136,10 @@ const MessageContent = ({ !finalExtractedThinkingContent && (!finalDisplayableFinalContent || finalDisplayableFinalContent.trim() === '')) { return ( -
-
+
+
@@ -170,13 +172,15 @@ const MessageContent = ({ {/* 渲染推理内容 */} {message.role === 'assistant' && finalExtractedThinkingContent && ( -
+
onToggleReasoningExpansion(message.id)} >
-
+
@@ -216,12 +220,12 @@ const MessageContent = ({ {message.isReasoningExpanded && (