From 2bc07c6b233af2c3d5e75e32cfde461aa47bbc19 Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Sat, 31 May 2025 03:30:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20feat(ui):=20Update=20thinking=20?= =?UTF-8?q?section=20design=20to=20match=20EditChannel=20header=20card=20s?= =?UTF-8?q?tyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace gradient background with purple theme matching EditChannel cards - Add decorative circle elements for visual consistency - Update all icons and text to white color for better contrast - Apply inline styles to ensure proper color rendering - Maintain hover effects with adjusted opacity values This change creates visual consistency across the application by adopting the same modern gradient design pattern used in EditChannel header cards. --- .../components/playground/MessageContent.js | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/web/src/components/playground/MessageContent.js b/web/src/components/playground/MessageContent.js index f9a84da0..efed6b0c 100644 --- a/web/src/components/playground/MessageContent.js +++ b/web/src/components/playground/MessageContent.js @@ -136,10 +136,8 @@ const MessageContent = ({ !finalExtractedThinkingContent && (!finalDisplayableFinalContent || finalDisplayableFinalContent.trim() === '')) { return ( -
-
+
+
@@ -172,42 +170,48 @@ const MessageContent = ({ {/* 渲染推理内容 */} {message.role === 'assistant' && finalExtractedThinkingContent && ( -
+
onToggleReasoningExpansion(message.id)} > -
-
- +
+
+
+
+
+
+
- + {headerText} {thinkingSource && ( - + 来源: {thinkingSource} )}
-
+
{isThinkingStatus && !message.isThinkingComplete && (
- - + + 思考中
)} {(!isThinkingStatus || message.isThinkingComplete) && ( -
+
{message.isReasoningExpanded ? - : - + : + }
)} @@ -215,17 +219,17 @@ const MessageContent = ({
{message.isReasoningExpanded && (