@devries-cameron20 / t3code-1 / commits / 97be291eb1
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): size Usage header controls to the available width (#24123)

Yukun Shan committed Oct 24, 2026 at 01:25 UTC 97be291eb1562378f055ebce0f169d1d842b53f0
1 file changed +7 -5
apps/web/src/components/usage/UsagePage.tsx
+7 -5
@@ -364,7 +364,7 @@ export function UsagePage() {
364 ? `${formatDateTimeShort(shownWindow.sinceTime, shownWindow.timeZone, hour12)} to ${formatDateTimeShort(shownWindow.untilTime, shownWindow.timeZone, hour12)}`
365 : `${formatDayShort(shownWindow.sinceDay)} to ${formatDayShort(shownWindow.untilDay)}`;
366 const topbarContent = (
367 - <div className="grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 py-2 xl:flex">
367 + <div className="grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 py-2 @4xl/usage-header:flex">
368 <WorkspaceBreadcrumb ariaLabel="Usage breadcrumb" className="min-w-0">
369 <WorkspaceBreadcrumbItem>
370 <h1>Usage</h1>
@@ -393,11 +393,11 @@ export function UsagePage() {
393 </WorkspaceBreadcrumbItem>
394 </WorkspaceBreadcrumb>
395 {!showingLimits ? (
396 - <span className="hidden min-w-0 truncate text-xs text-muted-foreground 2xl:block">
396 + <span className="hidden min-w-0 truncate text-xs text-muted-foreground @7xl/usage-header:block">
397 {windowLabel}
398 </span>
399 ) : null}
400 - <div className="ms-auto hidden min-w-0 items-center justify-end gap-2 xl:flex">
400 + <div className="ms-auto hidden shrink-0 items-center justify-end gap-2 @4xl/usage-header:flex">
401 <ToggleGroup
402 aria-label="Usage metric"
403 variant="segmented"
@@ -440,7 +440,7 @@ export function UsagePage() {
440 <RefreshIcon size="sm" refreshing={isRefreshing} />
441 </Button>
442 </div>
443 - <div className="ms-auto flex min-w-0 items-center justify-end gap-1 xl:hidden">
443 + <div className="ms-auto flex shrink-0 items-center justify-end gap-1 @4xl/usage-header:hidden">
444 <Select
445 value={metric}
446 onValueChange={(value) => {
@@ -509,7 +509,9 @@ export function UsagePage() {
509 return (
510 <SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none isolate">
511 <div className="flex min-h-0 min-w-0 flex-1 flex-col bg-background text-foreground">
512 - <WorkspacePageHeader electron={isElectron}>{topbarContent}</WorkspacePageHeader>
512 + <WorkspacePageHeader electron={isElectron} className="@container/usage-header">
513 + {topbarContent}
514 + </WorkspacePageHeader>
515
516 <ScrollArea className="min-h-0 flex-1">
517 <WorkspacePageContainer width="wide">