Skip to content

Conversation

@ohah
Copy link
Contributor

@ohah ohah commented Jan 25, 2025

fixed #235159

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

Copilot AI left a comment

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
Copy link

vs-code-engineering bot commented Oct 23, 2025

📬 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

Copy link
Member

@benvillalobos benvillalobos left a comment

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!

Copy link
Member

@benvillalobos benvillalobos left a comment

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
Copy link
Contributor Author

ohah commented Oct 24, 2025

Thanks for the benvillalobos

@bpasero
Copy link
Member

bpasero commented Oct 24, 2025

@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
Copy link
Contributor Author

ohah commented Oct 24, 2025

@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
Copy link
Contributor Author

ohah commented Oct 24, 2025

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

@ohah
Copy link
Contributor Author

ohah commented Oct 24, 2025

@bpasero
#273098
New 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.

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

6 participants