Skip to content

Commit a42d5de

Browse files
committed
fix(ui): 修复MessageView组件中StatusLine显示问题
- 修改StatusLine组件的params传值逻辑 - 当content存在时,params传入空字符串,避免显示错误 - 保持了内容渲染的兼容性和逻辑清晰性
1 parent 5568d17 commit a42d5de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ui/compoments/MessageView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function MessageView({ message, collapsed, width = 80 }: MessageViewProps
5050
}
5151
return (
5252
<Box marginLeft={1} flexDirection="column" marginBottom={1} marginY={0}>
53-
<StatusLine width={width} bulletColor="gray" name="Thinking" params={summary} />
53+
<StatusLine width={width} bulletColor="gray" name="Thinking" params={content ? "" : summary} />
5454
<Box flexDirection="column" marginLeft={2}>
5555
{content ? <Text dimColor>{renderMarkdown(content)}</Text> : null}
5656
</Box>

0 commit comments

Comments
 (0)