Skip to content

fix: file-found Badge vertical (#235159) - #238757

Merged
benvillalobos merged 5 commits into
microsoft:mainfrom
ohah:fix/235159
Oct 23, 2025
Merged

fix: file-found Badge vertical (#235159) #238757
benvillalobos merged 5 commits into
microsoft:mainfrom
ohah:fix/235159

Conversation

@ohah

@ohah ohah commented Jan 25, 2025

Copy link
Copy Markdown
Contributor

fixed #235159

Copilot AI review requested due to automatic review settings October 23, 2025 19:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a vertical alignment issue with badges in the file explorer (issue #235159). The changes ensure that count badges and icon labels are vertically centered by converting their display properties to flexbox with center alignment.

Key Changes:

  • Updated badge display from inline-block to inline-flex with vertical centering
  • Applied flexbox vertical centering to icon label containers

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/files/browser/media/explorerviewlet.css Changed badge display to inline-flex with align-items: center for proper vertical alignment
src/vs/base/browser/ui/iconLabel/iconlabel.css Added flexbox with vertical centering to icon name container

@vs-code-engineering

vs-code-engineering Bot commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/base/browser/ui/iconLabel/iconlabel.css
  • src/vs/workbench/contrib/files/browser/media/explorerviewlet.css

@benvillalobos benvillalobos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outside of the requested change, this looks good!

Comment thread src/vs/workbench/contrib/files/browser/media/explorerviewlet.css

@benvillalobos benvillalobos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Without Fix

image

With Fix

image

@vs-code-engineering vs-code-engineering Bot added this to the October 2025 milestone Oct 23, 2025
@benvillalobos
benvillalobos enabled auto-merge (squash) October 23, 2025 20:59
@benvillalobos
benvillalobos merged commit f8a575f into microsoft:main Oct 23, 2025
17 checks passed
@ohah

ohah commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the benvillalobos

@bpasero

bpasero commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

@ohah @benvillalobos this is not a good change, it causes #273052

Revert in #273068

bpasero added a commit that referenced this pull request Oct 24, 2025
Revert "Center badge items in explorer find  (#238757)"

This reverts commit f8a575f.
@ohah

ohah commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

@bpasero
src/vs/base/browser/ui/iconLabel/iconlabel.css
Did we need to remove the display: flex; and align-items: center; properties as well?
I’ll double-check it and leave a comment.

@ohah

ohah commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

sorry, I checked it, and it turns out the issue was on my end. I’ll fix it and open a PR

@ohah

ohah commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

@bpasero
#273098
New PR

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Dec 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Number-of-files-found Badge is not at the center of the list item vertically

7 participants