Revert reducing margin on narrow screens (#10375)

This commit is contained in:
Billy Biggs
2025-10-01 14:50:33 -07:00
committed by GitHub
parent 6eca199c39
commit ef76a801c4
7 changed files with 74 additions and 92 deletions
@@ -11,21 +11,15 @@ import { tokenLimit } from '@google/gemini-cli-core';
export const ContextUsageDisplay = ({
promptTokenCount,
model,
terminalWidth,
}: {
promptTokenCount: number;
model: string;
terminalWidth: number;
}) => {
const percentage = promptTokenCount / tokenLimit(model);
const percentageLeft = ((1 - percentage) * 100).toFixed(0);
const label = terminalWidth < 100 ? '%' : '% context left';
return (
<Text color={theme.text.secondary}>
({percentageLeft}
{label})
({((1 - percentage) * 100).toFixed(0)}% context left)
</Text>
);
};