Skip to content

Commit 913df83

Browse files
committed
fix(cli): prevent timestamp and message content overlay in MessageBlock
Wrap MessageBlock return value in a column flex box instead of a fragment to ensure timestamp and message content stack vertically without overlapping. This fixes the layout issue where user message timestamps could appear on top of the message text.
1 parent 9b985d6 commit 913df83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/components/message-block.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export const MessageBlock = memo((props: MessageBlockProps): ReactNode => {
229229
}
230230

231231
return (
232-
<>
232+
<box style={{ flexDirection: 'column', gap: 0, width: '100%' }}>
233233
{isUser && (
234234
<text
235235
attributes={TextAttributes.DIM}
@@ -279,7 +279,7 @@ export const MessageBlock = memo((props: MessageBlockProps): ReactNode => {
279279
{renderCompletionFooter()}
280280
</>
281281
)}
282-
</>
282+
</box>
283283
)
284284
})
285285

0 commit comments

Comments
 (0)