Skip to content

fix(sidebar): keep the earned reputation chip from pushing Cores out of the profile menu - #7542

Merged
idoshamun merged 1 commit into
mainfrom
fix/reputation-chip-overflow
Dec 1, 2026
Merged

idoshamun merged 1 commit into
mainfrom
fix/reputation-chip-overflow

Conversation

@idoshamun

@idoshamun idoshamun commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Problem

In the profile menu, the earned reputation chip (#7523) can make the reputation and Cores strip wider than the panel allows. With a large reputation, a large Cores balance and a gain, the strip's overflow-hidden cuts off the Cores number (for example 104K reputation, +120 earned, 9.9K Cores). This came in through user feedback.

Fix

  • ReputationEarnedChip uses largeNumberFormat, the same short format as the counts: +1.2K instead of +1,250. This applies to both the profile menu chip and the "+N reputation" chip on notifications.
  • SidebarProfileStats cells use gap-1 px-2 instead of gap-1.5 px-3.

Measured

I rendered the real component in Storybook inside the profile panel (w-60, pl-5 pr-6, a 196px strip). The browser used a fallback font (Helvetica/Arial):

Reputation / earned / Cores Before After
104K / +120 / 9.9K 208px (clipped) 186px
104K / +1,250 / 9.9K 218px (clipped) 191px
999K / +9,900 / 999K 221px (clipped) 195px

Tests

  • SidebarProfileStats.spec: a big gain shows as +1.2K.
  • The shared specs for the chip (SidebarProfileStats, NotificationItem, FirstReputationModal) pass, and pnpm --filter webapp test passes (712 tests).
  • oxlint, oxfmt and the strict-changed typecheck are clean.

🤖 Generated with Smith

Preview domain

https://fix-reputation-chip-overflow.preview.app.daily.dev

…of the profile menu

With a large reputation and Cores balance, the +N chip made the stats
strip wider than the 196px it has in the profile panel, and the strip's
overflow-hidden cut off the Cores number (user feedback c1c566e9).

The chip now uses the same short format as the counts (+1.2K, not
+1,250), and the cells use px-2/gap-1 instead of px-3/gap-1.5. With
104K reputation, +120 and 9.9K Cores the strip needs 186px (was 208px);
999K / +9.9K / 999K needs 195px (was 221px).
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
daily-webapp Ready Ready Preview Dec 1, 2026 10:32am UTC
1 Skipped Deployment
Project Deployment Actions Updated
storybook Ignored Ignored Dec 1, 2026 10:32am UTC

Request Review

@idoshamun
idoshamun merged commit 3cb7ea9 into main Dec 1, 2026
14 checks passed
@idoshamun
idoshamun deleted the fix/reputation-chip-overflow branch December 1, 2026 10:32

This branch was successfully deployed

1 active deployment
Preview – daily-webapp — 6d87e332 Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant