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>
|
</Box>
|
||||||
|
|
||||||
{/* Line 2: token stats ····· (provider) model */}
|
{/* Line 2: token stats ····· (provider) model */}
|
||||||
<Box justifyContent="space-between">
|
<Box justifyContent="space-between" minHeight={1}>
|
||||||
<Box>
|
<Box>
|
||||||
{hasTokens ? (
|
{hasTokens ? (
|
||||||
<>
|
<>
|
||||||
@@ -90,16 +90,14 @@ export function BottomBar({
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Text dimColor>—</Text>
|
<Text dimColor>^0 v0 $0.000</Text>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
{(providerName ?? modelName) && (
|
<Text dimColor>
|
||||||
<Text dimColor>
|
{providerName ? `(${providerName}) ` : ''}
|
||||||
{providerName ? `(${providerName}) ` : ''}
|
{modelName ?? 'awaiting model'}
|
||||||
{modelName ?? ''}
|
</Text>
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user