Fit streamed markdown tables to their content, and test that replies don't jump
Replies already stream through <markdown streaming>; tables now size to their cells with the theme's border colour. Tests cover tables mid-stream and settled, the newest line staying in view, and a scrolled-up view staying still.
This commit is contained in:
1 parent
d87026a66b
commit
a9a4b47566
5 files changed
+78
-4
No files matched your search
@@ -179,7 +179,7 @@ const Row = memo(function Row(props: {
|
||||
if (message.role === "system") return <text marginTop={1} fg={colors.muted} onMouseDown={(event: MouseEvent) => isRightClick(event) && mouse.menu(menu)}>{message.text}</text>;
|
||||
return (
|
||||
<box marginTop={1} flexDirection="column" onMouseDown={(event: MouseEvent) => isRightClick(event) && mouse.menu(menu)}>
|
||||
<markdown content={message.text || "…"} syntaxStyle={markdownStyle} streaming={message.streaming} conceal />
|
||||
<markdown content={message.text || "…"} syntaxStyle={markdownStyle} streaming={message.streaming} conceal tableOptions={{ widthMode: "content", wrapMode: "word", cellPaddingX: 1, borderColor: colors.border }} />
|
||||
{summary && summary.files.length > 0 ? <ChangedFiles summary={summary} onOpenTurnDiff={mouse.openTurnDiff} /> : null}
|
||||
{props.footer ? <text marginTop={1} fg={colors.faint}>{props.footer}</text> : null}
|
||||
</box>
|
||||
|
||||
Reference in new issue
Block a user