File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,11 +275,15 @@ export const WaitingRoomScreen: React.FC<WaitingRoomScreenProps> = ({
275275 const sharedPremiumUsed = rateLimitsByModel
276276 ? ( Object . values ( rateLimitsByModel ) [ 0 ] ?. recentCount ?? 0 )
277277 : 0
278- const premiumLeft = Math . max (
279- 0 ,
280- FREEBUFF_PREMIUM_SESSION_LIMIT - sharedPremiumUsed ,
281- )
282- const premiumLeftColor = premiumLeft === 0 ? theme . secondary : theme . muted
278+ const isPremiumExhausted =
279+ sharedPremiumUsed >= FREEBUFF_PREMIUM_SESSION_LIMIT
280+ const premiumUsedColor = isPremiumExhausted ? theme . secondary : theme . muted
281+ // Pad the used count so the title's centered container doesn't shift width
282+ // as the count ticks from "0" → "1.3" → "2" while loading.
283+ const sessionUnitWidth = String ( FREEBUFF_PREMIUM_SESSION_LIMIT ) . length + 2
284+ const formattedSharedPremiumUsed = formatSessionUnits (
285+ sharedPremiumUsed ,
286+ ) . padStart ( sessionUnitWidth )
283287
284288 return (
285289 < box
@@ -366,9 +370,10 @@ export const WaitingRoomScreen: React.FC<WaitingRoomScreenProps> = ({
366370 < span fg = { theme . foreground } attributes = { TextAttributes . BOLD } >
367371 Pick a model to start
368372 </ span >
369- < span fg = { premiumLeftColor } >
373+ < span fg = { premiumUsedColor } >
370374 { ' · ' }
371- { premiumLeft } premium left today
375+ { formattedSharedPremiumUsed } of{ ' ' }
376+ { FREEBUFF_PREMIUM_SESSION_LIMIT } premium sessions used today
372377 </ span >
373378 </ text >
374379 < FreebuffModelSelector />
You can’t perform that action at this time.
0 commit comments