fix(cli): ensure footer line 2 always renders
- Show '^0 v0 $0.000' instead of '—' when no token data yet
- Always show model slot ('awaiting model' as placeholder)
- Add minHeight={1} to prevent line collapse
This commit is contained in:
@@ -55,7 +55,7 @@ export function BottomBar({
|
||||
</Box>
|
||||
|
||||
{/* Line 2: token stats ····· (provider) model */}
|
||||
<Box justifyContent="space-between">
|
||||
<Box justifyContent="space-between" minHeight={1}>
|
||||
<Box>
|
||||
{hasTokens ? (
|
||||
<>
|
||||
@@ -90,16 +90,14 @@ export function BottomBar({
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<Text dimColor>—</Text>
|
||||
<Text dimColor>^0 v0 $0.000</Text>
|
||||
)}
|
||||
</Box>
|
||||
<Box>
|
||||
{(providerName ?? modelName) && (
|
||||
<Text dimColor>
|
||||
{providerName ? `(${providerName}) ` : ''}
|
||||
{modelName ?? ''}
|
||||
</Text>
|
||||
)}
|
||||
<Text dimColor>
|
||||
{providerName ? `(${providerName}) ` : ''}
|
||||
{modelName ?? 'awaiting model'}
|
||||
</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user