Skip to content

Commit e3918d9

Browse files
committed
Fix transcript paragraph/list gaps and widen turn separators
The .transcript .text / .thinking pre-wrap rule was being inherited into the .markdown-view div on the same element, so source newlines between paragraphs and list items rendered visibly on top of the <p>/<li> margins, compounding the gap. Override white-space to normal inside .markdown-view. Also bump .turn-marker margin/padding so adjacent turns have a clearer visual break.
1 parent 9401453 commit e3918d9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/web/styles.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,12 @@ body {
450450
font-style: italic;
451451
white-space: pre-wrap;
452452
}
453+
/* When rendered as markdown, source `\n` between paragraphs/list items would
454+
* otherwise compound with the block-element margins react-markdown adds —
455+
* override the pre-wrap inherited from .text / .thinking on the same div. */
456+
.transcript .markdown-view {
457+
white-space: normal;
458+
}
453459
.transcript .tool-use {
454460
color: var(--accent);
455461
}
@@ -462,8 +468,8 @@ body {
462468
.transcript .turn-marker {
463469
color: var(--fg-dim);
464470
border-top: 1px dashed var(--border);
465-
padding-top: 4px;
466-
margin-top: 4px;
471+
padding-top: 6px;
472+
margin-top: 14px;
467473
font-size: 10px;
468474
text-transform: uppercase;
469475
letter-spacing: 0.6px;

0 commit comments

Comments
 (0)