优化用户消息的图片展示

This commit is contained in:
xintaofei
2026-03-08 17:59:17 +08:00
parent 593e03e2b9
commit c7f2190674
2 changed files with 9 additions and 9 deletions

View File

@@ -856,15 +856,15 @@ export function WelcomeInputPanel({
{history.map((msg) => (
<div key={msg.id}>
<Message from={msg.role === "tool" ? "assistant" : msg.role}>
<MessageContent>
<ContentPartsRenderer parts={msg.content} role={msg.role} />
</MessageContent>
{msg.role === "user" && msg.userImages?.length ? (
<UserImageAttachments
images={msg.userImages}
className="self-end"
/>
) : null}
<MessageContent>
<ContentPartsRenderer parts={msg.content} role={msg.role} />
</MessageContent>
{msg.role === "user" && msg.userResources?.length ? (
<UserResourceLinks
resources={msg.userResources}