summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/StatsDisplay.tsx
diff options
context:
space:
mode:
authorchristine betts <[email protected]>2025-08-21 17:56:18 +0000
committerGitHub <[email protected]>2025-08-21 17:56:18 +0000
commit0a7879272d2015b122e18d5bf32e0f8a5d6884ad (patch)
treef5da8590c6147d59f1203f6aa36eab48318b2937 /packages/cli/src/ui/components/StatsDisplay.tsx
parenta90ca626d3dfcd9b52302f42a8f7b75a836f6dfa (diff)
Fix stats display layout (#6758)
Diffstat (limited to 'packages/cli/src/ui/components/StatsDisplay.tsx')
-rw-r--r--packages/cli/src/ui/components/StatsDisplay.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/cli/src/ui/components/StatsDisplay.tsx b/packages/cli/src/ui/components/StatsDisplay.tsx
index 8dd00efd..bcf02906 100644
--- a/packages/cli/src/ui/components/StatsDisplay.tsx
+++ b/packages/cli/src/ui/components/StatsDisplay.tsx
@@ -31,7 +31,8 @@ const StatRow: React.FC<StatRowProps> = ({ title, children }) => (
<Box width={28}>
<Text color={theme.text.link}>{title}</Text>
</Box>
- {children}
+ {/* FIX: Wrap children in a Box that can grow to fill remaining space */}
+ <Box flexGrow={1}>{children}</Box>
</Box>
);
@@ -47,7 +48,8 @@ const SubStatRow: React.FC<SubStatRowProps> = ({ title, children }) => (
<Box width={26}>
<Text>ยป {title}</Text>
</Box>
- {children}
+ {/* FIX: Apply the same flexGrow fix here */}
+ <Box flexGrow={1}>{children}</Box>
</Box>
);
@@ -204,8 +206,8 @@ export const StatsDisplay: React.FC<StatsDisplayProps> = ({
<StatRow title="Tool Calls:">
<Text>
{tools.totalCalls} ({' '}
- <Text color={theme.status.success}>โœ” {tools.totalSuccess}</Text>{' '}
- <Text color={theme.status.error}>โœ– {tools.totalFail}</Text> )
+ <Text color={theme.status.success}>โœ“ {tools.totalSuccess}</Text>{' '}
+ <Text color={theme.status.error}>x {tools.totalFail}</Text> )
</Text>
</StatRow>
<StatRow title="Success Rate:">