From e83db3384e287e61c93023306ca2a5bd0cfee9ad Mon Sep 17 00:00:00 2001 From: akash3444 Date: Mon, 12 Oct 2026 13:04:49 +0530 Subject: [PATCH] fix(web): polish pooled usage limit display - Hide the reset plate when a usage window has not started - Align the pace indicator and refine the model dialog border --- .../components/usage/UsageLimitsPooled.tsx | 41 +++++++++++-------- .../src/components/usage/UsageModelDialog.tsx | 2 +- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/apps/web/src/components/usage/UsageLimitsPooled.tsx b/apps/web/src/components/usage/UsageLimitsPooled.tsx index 8a6d3cc5eecd..2930bdf8d41d 100644 --- a/apps/web/src/components/usage/UsageLimitsPooled.tsx +++ b/apps/web/src/components/usage/UsageLimitsPooled.tsx @@ -290,23 +290,26 @@ function PoolSegment({ /> ) : null} {remaining}% - {/* Countdown and badge get their own plate: fill and hatching run under them otherwise. */} - - {resetsIn?.replace("resets in ", "↻ ") ?? ""} - {credits ? ( - <> - {resetsIn ? ( - - · + {/* 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 ? ( + + {resetsIn?.replace("resets in ", "↻ ") ?? ""} + {credits ? ( + <> + {resetsIn ? ( + + · + + ) : null} + + + {credits} - ) : null} - - - {credits} - - - ) : null} - + + ) : null} + + ) : null} @@ -514,8 +517,10 @@ function PoolWindowCard({ {pool.remainingPercent}% - left - {pool.pace ? : null} + + left + {pool.pace ? : null} + {nextRefill && pool.columns.length > 1 ? ( diff --git a/apps/web/src/components/usage/UsageModelDialog.tsx b/apps/web/src/components/usage/UsageModelDialog.tsx index 920680286f54..959519528553 100644 --- a/apps/web/src/components/usage/UsageModelDialog.tsx +++ b/apps/web/src/components/usage/UsageModelDialog.tsx @@ -80,7 +80,7 @@ export function UsageModelDialog({ if (!open) onClose(); }} > - +