Skip to content

fix: prevent category chip layout shift on selection - #159

Merged
mkayander merged 1 commit into
mainfrom
cursor/category-chip-no-bold-shift-856e
Aug 3, 2026
Merged

fix: prevent category chip layout shift on selection#159
mkayander merged 1 commit into
mainfrom
cursor/category-chip-no-bold-shift-856e

Conversation

@mkayander

Copy link
Copy Markdown
Owner

Problem

Selecting a category chip in the project browser applied fontWeight: 600, which made the chip slightly wider and shifted surrounding chips.

Solution

Remove the conditional bold styling. Selected state is already communicated by background color, text color, and border — no need for a weight change that affects layout.

Changes

  • ProjectBrowserCategoryBar.tsx: remove fontWeight: isSelected ? 600 : 400 from category chip sx
Open in Web Open in Cursor 

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
dstruct Ready Ready Preview Aug 2, 2026 8:09pm

@mkayander
mkayander marked this pull request as ready for review August 3, 2026 07:54
@cursor

cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@mkayander
mkayander merged commit 0b144e3 into main Aug 3, 2026
6 checks passed
github-actions Bot pushed a commit that referenced this pull request Aug 3, 2026
## [1.379.4](v1.379.3...v1.379.4) (2026-08-03)

### Bug Fixes

* stop category chip bold text from shifting layout on select ([#159](#159)) ([0b144e3](0b144e3))
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.379.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants