mirror of
https://github.com/Narcooo/inkos.git
synced 2026-09-01 15:08:51 +08:00
fix(tui): use minWidth layout for stable prefix spacing
Replace columnGap/trailing-space approach with <Box minWidth={2}> for
prefix icons (◆ │ ·), matching Claude Code's layout pattern.
Also fix user message body color to ROLE_USER (light blue).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -432,27 +432,27 @@ function ConversationRow(props: { readonly row: DashboardMessageRow }): React.JS
|
||||
|
||||
if (role === "user") {
|
||||
return (
|
||||
<Box marginBottom={1} columnGap={1}>
|
||||
<Text color={ROLE_USER}>│</Text>
|
||||
<Text color={WARM_REPLY}>{content}</Text>
|
||||
<Box flexDirection="row" marginBottom={1}>
|
||||
<Box minWidth={2}><Text color={ROLE_USER}>│</Text></Box>
|
||||
<Box flexDirection="column" flexShrink={1}><Text color={ROLE_USER}>{content}</Text></Box>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
if (role === "system") {
|
||||
return (
|
||||
<Box marginBottom={1} columnGap={1}>
|
||||
<Text color={ROLE_SYSTEM}>·</Text>
|
||||
<Text color={ROLE_SYSTEM}>{content}</Text>
|
||||
<Box flexDirection="row" marginBottom={1}>
|
||||
<Box minWidth={2}><Text color={ROLE_SYSTEM}>·</Text></Box>
|
||||
<Box flexDirection="column" flexShrink={1}><Text color={ROLE_SYSTEM}>{content}</Text></Box>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
// assistant — render markdown (bold, tables, code, etc.)
|
||||
return (
|
||||
<Box marginBottom={1} columnGap={1}>
|
||||
<Text color={WARM_ACCENT}>◆</Text>
|
||||
<Text color={WARM_REPLY}>{renderMarkdown(content)}</Text>
|
||||
<Box flexDirection="row" marginBottom={1}>
|
||||
<Box minWidth={2}><Text color={WARM_ACCENT}>◆</Text></Box>
|
||||
<Box flexDirection="column" flexShrink={1}><Text color={WARM_REPLY}>{renderMarkdown(content)}</Text></Box>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user