Skip to content

fix(app): size update pill to label - #42328

Open
dajiaohuang wants to merge 1 commit into
anomalyco:devfrom
dajiaohuang:fix-update-spacing
Open

fix(app): size update pill to label#42328
dajiaohuang wants to merge 1 commit into
anomalyco:devfrom
dajiaohuang:fix-update-spacing

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Aug 13, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #42232

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The titlebar update pill used a fixed 68px expanded width, leaving excess space around short translations such as Chinese and constraining longer labels.

Size the expanded pill from its label's intrinsic width while preserving the 20px collapsed circle, right-aligned icon, focus/hover animation, and a 192px maximum for unusually long translations.

How did you verify your code works?

  • bun run typecheck
  • bun run test:unit (722 passed)
  • bun run test:browser (41 passed)
  • bun run build
  • Repository pre-push monorepo typecheck (30 tasks passed)
  • Browser layout check: 20px collapsed; 51px Chinese, 65.5px English, and 94.52px French when expanded

Screenshots / recordings

Before, from the issue report:

Chinese update pill with fixed-width spacing

After the fix, the focused Chinese pill measures 51px instead of the fixed 68px. English and French expand to 65.5px and 94.52px respectively, while every collapsed pill remains 20px.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

titlebar update button extra spacing

1 participant