diff --git a/apps/web/src/components/usage/UsageLimitsPooled.tsx b/apps/web/src/components/usage/UsageLimitsPooled.tsx index d5f46398fa31c..03c2d7d388583 100644 --- a/apps/web/src/components/usage/UsageLimitsPooled.tsx +++ b/apps/web/src/components/usage/UsageLimitsPooled.tsx @@ -362,7 +362,7 @@ function SegmentTriggers({ type="button" style={{ gridColumn: index, gridRow: 1, ...paceMark?.gappedTrack }} aria-label={`${account.displayName ?? (account.email ? accountInitials(account.email) : account.driver)}: ${remaining}% left${resetsIn ? `, ${resetsIn}` : ""}${timeLeft === null ? "" : `, ${timeLeft}% of the window left`}${credits ? `, ${credits} reset ${credits === 1 ? "credit" : "credits"} banked` : ""}`} - className="relative h-5 min-w-0 cursor-pointer rounded-md bg-muted text-start outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[popup-open]:ring-1 data-[popup-open]:ring-inset data-[popup-open]:ring-border @2xl/pool:h-8" + className="relative h-5 min-w-0 cursor-pointer rounded-md bg-muted text-start outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[popup-open]:ring-1 data-[popup-open]:ring-inset data-[popup-open]:ring-border @min-[11rem]/pool:h-8" /> } > @@ -395,11 +395,11 @@ function SegmentTriggers({ ) : null} {index} -
+
{showAccountName ? ( } - className="min-w-0 @2xl/pool:hidden" + className="min-w-0 @min-[11rem]/pool:hidden" > [reset.member.account.key, reset])); + // The container is one account's share of the bar, so its query asks whether a segment has + // room for its label. The floor keeps the 42rem bar breakpoint for up to three accounts. + const share = Math.max(pool.columns.length, 42 / 11); return ( -
+
{pool.columns.map((member, position) => member.window ? ( diff --git a/docs/user/usage.md b/docs/user/usage.md index e6b3a46d5a14e..ce55207f87137 100644 --- a/docs/user/usage.md +++ b/docs/user/usage.md @@ -122,7 +122,7 @@ part of a segment is what that reset restores. Tap a segment or account row for where it is signed in, and its reset time. On web, you can hover too. Codex and Claude accounts with banked reset credits show a ticket count and the **Use reset** action in the account details. Claude resets are not available when the server runs on macOS, where Claude keeps its login in the -Keychain. On narrow screens, numbered rows below +Keychain. When a bar is too narrow to label every account, numbered rows below the bar show each account's quota, countdown, and credits. Tap a row to open its details. The same account signed in on more than one environment, or reported by a hub as well, counts once.