Skip to content

Commit 18041f9

Browse files
committed
style(tui): tighten chat message spacing
Remove blank line between role label and content, reduce inter-message gap from two blank lines to one. Matches Claude Code's compact layout.
1 parent c0c46a6 commit 18041f9

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • crates/oxide-code/src/tui/components

crates/oxide-code/src/tui/components/chat.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ impl ChatView {
120120
let mut lines: Vec<Line<'_>> = Vec::new();
121121

122122
for msg in &self.messages {
123-
// Two blank lines between messages for visual breathing room.
123+
// Single blank line between messages.
124124
if !lines.is_empty() {
125125
lines.push(Line::raw(""));
126-
lines.push(Line::raw(""));
127126
}
128127

129128
// Role label.
@@ -135,9 +134,8 @@ impl ChatView {
135134
Span::raw(" "),
136135
Span::styled(label, style),
137136
]));
138-
lines.push(Line::raw(""));
139137

140-
// Content lines.
138+
// Content lines (immediately after label, no blank line).
141139
for line in msg.content.lines() {
142140
lines.push(Line::from(vec![
143141
Span::raw(" "),
@@ -150,13 +148,11 @@ impl ChatView {
150148
if !self.streaming_buffer.is_empty() {
151149
if !lines.is_empty() {
152150
lines.push(Line::raw(""));
153-
lines.push(Line::raw(""));
154151
}
155152
lines.push(Line::from(vec![
156153
Span::raw(" "),
157154
Span::styled("⟡ Assistant", self.theme.secondary()),
158155
]));
159-
lines.push(Line::raw(""));
160156
for line in self.streaming_buffer.lines() {
161157
lines.push(Line::from(vec![
162158
Span::raw(" "),

0 commit comments

Comments
 (0)