From 27d451624d87584cbbf2ec5a41f322f4a8fa26db Mon Sep 17 00:00:00 2001 From: RyuseiTaniguchi Date: Sat, 5 Sep 2026 21:02:27 +0900 Subject: [PATCH] fix(dashboard): stop Account Balances and Investments from clipping their own numbers Both widgets wrap a scrollable list in overflow-y-auto without constraining the other axis, so a row wider than the card (a long name, or an auto-layout table column) drags a hidden horizontal scrollbar along with it -- and the Card's own overflow-hidden then clips whatever's past the edge, including the balance's leading "-$". - account-balances.tsx: table-fixed + a fixed-width balance column so the amount can never be pushed off-screen. - investments-widget.tsx: add the min-w-0 the row was missing, matching the pattern every other dashboard widget already uses. --- .../organisms/widgets/account-balances.tsx | 14 +++++++++++--- .../organisms/widgets/investments-widget.tsx | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/organisms/widgets/account-balances.tsx b/src/components/organisms/widgets/account-balances.tsx index d668da7..466d25d 100644 --- a/src/components/organisms/widgets/account-balances.tsx +++ b/src/components/organisms/widgets/account-balances.tsx @@ -35,9 +35,17 @@ export function AccountBalancesWidget({ data }: AccountBalancesWidgetProps) { {/* Account and balance are a real two-column table. The widget shows no visible headers, so they are screen-reader only -- without them the balances read as an undifferentiated run of numbers. */} -
- +
+ {/* table-fixed pins the balance column to a fixed width so it can + never be pushed past the card's edge -- without it the balance + column grows to fit its content and drags a horizontal scrollbar + (and the card's own overflow-hidden) along with it. */} +
+ + + + @@ -58,7 +66,7 @@ export function AccountBalancesWidget({ data }: AccountBalancesWidgetProps) { {accountDisplayName(account.name)} -
Account balances
Account + +
    {topHoldings.map((h) => (
  • -
    +
    {holdingLabel(h)} {centsToDisplay(h.currentValue)}