Skip to content
Closed
Show file tree
Hide file tree
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
41 changes: 23 additions & 18 deletions apps/web/src/components/usage/UsageLimitsPooled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,23 +290,26 @@ function PoolSegment({
/>
) : null}
<span className="shrink-0 font-semibold text-foreground tabular-nums">{remaining}%</span>
{/* Countdown and badge get their own plate: fill and hatching run under them otherwise. */}
<span className="ms-auto flex shrink-0 items-center gap-1.5 rounded-sm bg-background/85 px-1.5 py-0.5 text-2xs text-foreground tabular-nums">
{resetsIn?.replace("resets in ", "↻ ") ?? ""}
{credits ? (
<>
{resetsIn ? (
<span aria-hidden className="text-muted-foreground">
·
{/* Countdown and badge get their own plate: fill and hatching run under them otherwise.
An unstarted window has no reset, so the plate is skipped rather than drawn empty. */}
{resetsIn || credits ? (
<span className="ms-auto flex shrink-0 items-center gap-1.5 rounded-sm bg-background/85 px-1.5 py-0.5 text-2xs text-foreground tabular-nums">
{resetsIn?.replace("resets in ", "↻ ") ?? ""}
{credits ? (
<>
{resetsIn ? (
<span aria-hidden className="text-muted-foreground">
·
</span>
) : null}
<span aria-hidden className="inline-flex items-center gap-0.5 font-semibold">
<TicketIcon className="size-3" aria-hidden />
{credits}
</span>
) : null}
<span aria-hidden className="inline-flex items-center gap-0.5 font-semibold">
<TicketIcon className="size-3" aria-hidden />
{credits}
</span>
</>
) : null}
</span>
</>
) : null}
</span>
) : null}
</div>
</PopoverTrigger>
<LegendRow account={account} window={window} color={color} now={now} index={index} />
Expand Down Expand Up @@ -514,8 +517,10 @@ function PoolWindowCard({
<span className="text-3xl font-semibold text-foreground tabular-nums">
{pool.remainingPercent}%
</span>
<span className="text-sm text-muted-foreground">left</span>
{pool.pace ? <PaceIcon pace={pool.pace} /> : null}
<span className="inline-flex items-center gap-2 text-sm text-muted-foreground">
<span>left</span>
{pool.pace ? <PaceIcon pace={pool.pace} /> : null}
</span>
</span>
{nextRefill && pool.columns.length > 1 ? (
<span className="text-xs font-medium text-foreground tabular-nums">
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/usage/UsageModelDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function UsageModelDialog({
if (!open) onClose();
}}
>
<DialogPopup className="max-w-3xl">
<DialogPopup className="max-w-3xl border-none ring ring-border/70 shadow-2xl">
<DialogHeader>
<div className="flex items-center gap-2">
<ProviderInstanceIcon
Expand Down
Loading