Skip to content

Commit 7be20ff

Browse files
asanmateuclaude
andcommitted
feat: polish chat view with symbol labels, bordered card, and consistent spacing
Replace "You"/"AI" role labels with › / ◆ symbols, wrap chat area in a bordered card matching SummaryView panels, fix label-content spacing by nesting symbol inside parent Text node, and unify message marginBottom. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f92e316 commit 7be20ff

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Chat export: press `Ctrl+s` in chat view to save the conversation as `chat.md` in the session directory; auto-saves on every subsequent message
1313

14+
### Changed
15+
16+
- Chat view: role labels changed from "You"/"AI" to ``/`` symbols, messages wrapped in bordered card, consistent spacing between messages
17+
1418
## [2.1.0] - 2026-02-21
1519

1620
### Added

src/components/ChatView.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,29 +110,33 @@ export function ChatView({
110110
: "[Esc] back · [q] back (when empty) · [Ctrl+s] save chat";
111111

112112
return (
113-
<Box flexDirection="column" paddingX={1}>
113+
<Box flexDirection="column" paddingX={1} borderStyle="round" borderColor={theme.brandBorder}>
114114
<Box marginBottom={1}>
115115
<Text bold color={theme.accent}>
116116
Chat — ask questions about this summary
117117
</Text>
118118
</Box>
119119

120120
{messages.map((msg, i) => (
121-
<Box key={`msg-${i}-${msg.role}`} marginBottom={msg.role === "assistant" ? 1 : 0}>
122-
<Text bold color={msg.role === "user" ? theme.warning : theme.success}>
123-
{msg.role === "user" ? "You: " : "AI: "}
121+
<Box key={`msg-${i}-${msg.role}`} marginBottom={1}>
122+
<Text wrap="wrap">
123+
<Text bold color={msg.role === "user" ? theme.warning : theme.success}>
124+
{msg.role === "user" ? "› " : "◆ "}
125+
</Text>
126+
{msg.content}
124127
</Text>
125-
<Text wrap="wrap">{msg.content}</Text>
126128
</Box>
127129
))}
128130

129131
{isStreaming && (
130132
<Box marginBottom={1}>
131-
<Text bold color={theme.success}>
132-
AI:{" "}
133+
<Text wrap="wrap">
134+
<Text bold color={theme.success}>
135+
{"◆ "}
136+
</Text>
137+
{streamingResponse}
138+
<Text color={theme.accent}></Text>
133139
</Text>
134-
<Text wrap="wrap">{streamingResponse}</Text>
135-
<Text color={theme.accent}></Text>
136140
</Box>
137141
)}
138142

0 commit comments

Comments
 (0)