Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions apps/web/src/components/usage/UsagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export function UsagePage() {
? `${formatDateTimeShort(shownWindow.sinceTime, shownWindow.timeZone, hour12)} to ${formatDateTimeShort(shownWindow.untilTime, shownWindow.timeZone, hour12)}`
: `${formatDayShort(shownWindow.sinceDay)} to ${formatDayShort(shownWindow.untilDay)}`;
const topbarContent = (
<div className="grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 py-2 xl:flex">
<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">
<WorkspaceBreadcrumb ariaLabel="Usage breadcrumb" className="min-w-0">
<WorkspaceBreadcrumbItem>
<h1>Usage</h1>
Expand Down Expand Up @@ -393,11 +393,11 @@ export function UsagePage() {
</WorkspaceBreadcrumbItem>
</WorkspaceBreadcrumb>
{!showingLimits ? (
<span className="hidden min-w-0 truncate text-xs text-muted-foreground 2xl:block">
<span className="hidden min-w-0 truncate text-xs text-muted-foreground @7xl/usage-header:block">
{windowLabel}
</span>
) : null}
<div className="ms-auto hidden min-w-0 items-center justify-end gap-2 xl:flex">
<div className="ms-auto hidden shrink-0 items-center justify-end gap-2 @4xl/usage-header:flex">
<ToggleGroup
aria-label="Usage metric"
variant="segmented"
Expand Down Expand Up @@ -440,7 +440,7 @@ export function UsagePage() {
<RefreshIcon size="sm" refreshing={isRefreshing} />
</Button>
</div>
<div className="ms-auto flex min-w-0 items-center justify-end gap-1 xl:hidden">
<div className="ms-auto flex shrink-0 items-center justify-end gap-1 @4xl/usage-header:hidden">
<Select
value={metric}
onValueChange={(value) => {
Expand Down Expand Up @@ -509,7 +509,9 @@ export function UsagePage() {
return (
<SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none isolate">
<div className="flex min-h-0 min-w-0 flex-1 flex-col bg-background text-foreground">
<WorkspacePageHeader electron={isElectron}>{topbarContent}</WorkspacePageHeader>
<WorkspacePageHeader electron={isElectron} className="@container/usage-header">
{topbarContent}
</WorkspacePageHeader>

<ScrollArea className="min-h-0 flex-1">
<WorkspacePageContainer width="wide">
Expand Down
Loading