Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical alignment on tab icons seems unaligned when compact #194180

Closed
andreamah opened this issue Sep 26, 2023 · 4 comments
Closed

Vertical alignment on tab icons seems unaligned when compact #194180

andreamah opened this issue Sep 26, 2023 · 4 comments
Assignees
Labels
workbench-tabs VS Code editor tab issues

Comments

@andreamah
Copy link
Contributor

andreamah commented Sep 26, 2023

Testing #193981

Image

  1. Set window.density.editorTabHeight to compact
  2. Notice that the icon almost looks too high compared to the text. For example, in my screenshot, the S in settings seems to not be aligned with the icon (off by a few pixels if you look closely).
@bpasero bpasero added the workbench-tabs VS Code editor tab issues label Sep 26, 2023
@benibenj
Copy link
Contributor

benibenj commented Sep 27, 2023

This has always been this way as it uses the line height to vertically align the text. It's just a bit more noticeable with the reduced tab height. @bpasero is there a reason why line-height is used instead of flexbox to vertically align the label and icon?

@bpasero
Copy link
Member

bpasero commented Sep 27, 2023

@benibenj I actually do not remember, but feel free to explore alternatives and see if that improves it.

We also have #162995 opened which talks about a similar problem in the status bar I believe.

//cc @daviddossett @hbons

@daviddossett
Copy link
Contributor

It may be because the line height of the text and the dimensions of the icon don't match. I run into this within Figma all the time :)

@bpasero
Copy link
Member

bpasero commented Apr 26, 2024

Related :) https://tonsky.me/blog/centering/

@benibenj benibenj closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workbench-tabs VS Code editor tab issues
Projects
None yet
Development

No branches or pull requests

4 participants