Skip to content

Commit 1f3c3e0

Browse files
committed
style(ui): 优化消息视图的布局间距
- 在消息视图组件中给部分 Box 组件添加左边距 - 增加 Loaded skill 文本和 conversation summary 插入文本的左侧间距 - 改善消息内容的整体排版和视觉层次感
1 parent 4c015a3 commit 1f3c3e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ui/MessageView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function MessageView({ message, collapsed }: Props): React.ReactElement |
6767
const summary = buildToolSummary(message);
6868
const diffLines = getToolDiffPreviewLines(summary);
6969
return (
70-
<Box flexDirection="column" marginBottom={1} marginY={0}>
70+
<Box flexDirection="column" marginLeft={1} marginBottom={1} marginY={0}>
7171
<StatusLine
7272
bulletColor={summary.ok ? "green" : "red"}
7373
name={formatStatusName(summary.name)}
@@ -81,14 +81,14 @@ export function MessageView({ message, collapsed }: Props): React.ReactElement |
8181
if (message.role === "system") {
8282
if (message.meta?.skill) {
8383
return (
84-
<Box marginY={0} marginBottom={1}>
84+
<Box marginY={0} marginLeft={1} marginBottom={1}>
8585
<Text color="magenta">⚡ Loaded skill: {message.meta.skill.name}</Text>
8686
</Box>
8787
);
8888
}
8989
if (message.meta?.isSummary) {
9090
return (
91-
<Box marginY={0} marginBottom={1}>
91+
<Box marginY={0} marginLeft={1} marginBottom={1}>
9292
<Text dimColor italic>(conversation summary inserted)</Text>
9393
</Box>
9494
);

0 commit comments

Comments
 (0)