Fix context window progress bar spacing (#1554)

This commit is contained in:
Saoud Rizwan 2025-01-30 11:15:16 -08:00 committed by GitHub
parent 1ae1d047cb
commit 3885f09a0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
<div
style={{
display: "flex",
flexDirection: windowWidth < 320 ? "column" : "row",
flexDirection: windowWidth < 270 ? "column" : "row",
gap: "4px",
}}>
<div
@ -136,19 +136,16 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
style={{
display: "flex",
alignItems: "center",
gap: "8px",
gap: "3px",
flex: 1,
whiteSpace: "nowrap",
}}>
<span>
{formatLargeNumber(lastApiReqTotalTokens)} (
{Math.round((lastApiReqTotalTokens / contextWindow) * 100)}%)
</span>
<span>{formatLargeNumber(lastApiReqTotalTokens)}</span>
<div
style={{
display: "flex",
alignItems: "center",
gap: "8px",
gap: "3px",
flex: 1,
}}>
<div