From ae22c157f44e1002546dcc3da722c31ea48a0e19 Mon Sep 17 00:00:00 2001 From: adevwithpurpose Date: Wed, 26 Aug 2026 05:12:50 +0500 Subject: [PATCH] fix(ui): wrap quota card footer action buttons to prevent clipping Refresh button on narrow cards (#11464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Validated in a combined sub-batch worktree off release/v3.8.51 tip. This PR's branch carried ~100 already-merged commits from a stale rebase (phantom-diff — every commit but the last matches history already on the release tip); cherry-picked only the genuine value commit (the flex-wrap fix itself) and pushed that to this branch. - Focused tests: quota-card-expanded-footer-flex-wrap.test.ts, quota-card-expanded-sort-collapse.test.ts, quota-card-grid-mobile-7072.test.ts — part of sub-batch's 165/165 node:test run - typecheck:core, file-size, changelog-integrity, complexity, cognitive-complexity — all OK - Full-repo lint: 228 pre-existing dashboard react-hooks/* findings, unrelated to this diff Thanks for the clear root cause (extra View credits button + missing flex-wrap on the footer + overflow-hidden on the outer Card clipping the trailing Refresh now button). --- .../fixes/quota-card-footer-flex-wrap.md | 1 + .../parts/QuotaCardExpanded.tsx | 14 ++++---- ...ota-card-expanded-footer-flex-wrap.test.ts | 35 +++++++++++++++++++ 3 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 changelog.d/fixes/quota-card-footer-flex-wrap.md create mode 100644 tests/unit/quota-card-expanded-footer-flex-wrap.test.ts diff --git a/changelog.d/fixes/quota-card-footer-flex-wrap.md b/changelog.d/fixes/quota-card-footer-flex-wrap.md new file mode 100644 index 0000000000..0e22082173 --- /dev/null +++ b/changelog.d/fixes/quota-card-footer-flex-wrap.md @@ -0,0 +1 @@ +- fix(ui): wrap quota card footer action buttons to prevent clipping Refresh button on narrow cards — when extra action buttons such as `View credits` are present on Codex cards, allow the footer row to flex-wrap with `shrink-0` buttons so `Refresh now` remains visible and clickable across all responsive card widths diff --git a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/parts/QuotaCardExpanded.tsx b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/parts/QuotaCardExpanded.tsx index 8df84a4a57..f248ac5f1b 100644 --- a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/parts/QuotaCardExpanded.tsx +++ b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/parts/QuotaCardExpanded.tsx @@ -418,10 +418,10 @@ export default function QuotaCardExpanded({ )} -
+
{refreshedLabel && ( )} -
+
{canRedeemResetCredit && (