diff --git a/src/pages/chat/components/ChatBody.tsx b/src/pages/chat/components/ChatBody.tsx
index dcf9942..2d6741a 100644
--- a/src/pages/chat/components/ChatBody.tsx
+++ b/src/pages/chat/components/ChatBody.tsx
@@ -94,9 +94,9 @@ export default function ChatBody(props: {
marginBottom: 6
}}>
{streamingAgent.name}
diff --git a/src/pages/chat/components/messages/MessageItem.tsx b/src/pages/chat/components/messages/MessageItem.tsx
index 22aa24f..c6d27ef 100644
--- a/src/pages/chat/components/messages/MessageItem.tsx
+++ b/src/pages/chat/components/messages/MessageItem.tsx
@@ -50,9 +50,39 @@ export default function MessageItem(props: {
transition: 'background 0.4s, padding 0.4s'
}}
>
- {message.role === 'assistant' ? (
+ {message.role === 'user' ? (
+
+ {/* 用户: 头像在右侧,内容在左侧(靠右对齐) */}
+
+
+
+ 我
+
+
+
+ {message.content.includes(' ? (
+ {message.content}
+ ) : (
+ @$1')
+ }} />
+ )}
+
+
+
我
+
+ ) : (
- {/* AGENT: 头像在左侧 */}
+ {/* AGENT: 头像在左侧,内容在右侧(靠左对齐) */}
{hasAnswerAgent && (
)}
@@ -65,9 +95,9 @@ export default function MessageItem(props: {
marginBottom: 6
}}>
{answerAgent!.name}
@@ -121,36 +151,6 @@ export default function MessageItem(props: {
)}
- ) : (
-
-
-
-
- 我
-
-
-
- {message.content.includes(' ? (
- {message.content}
- ) : (
- @$1')
- }} />
- )}
-
-
- {/* 用户: 头像在右侧 */}
-
我
-
)}
);
diff --git a/src/styles.css b/src/styles.css
index aaebdbc..a4c51f5 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -645,7 +645,7 @@ body {
}
.bubble.assistant {
- background: var(--color-surface);
+ background: #ffffff;
color: var(--color-text);
border: 1px solid var(--color-border);
border-bottom-left-radius: 5px;