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

Traffic lights cause left padding everywhere in the titles and icon ribbons of sidebar #217

Open
lethefrost opened this issue Aug 23, 2024 · 2 comments

Comments

@lethefrost
Copy link

no matter main sidebar or auxiliary sidebar, set on the left or on the right side, in their title bar or activity bar icon ribbons, even when position is "bottom", there will always be a left padding for the traffic lights.
image

by the way, the sidebar (main or auxiliary) which is placed at the left side cannot provide the feature of dragging the window from its title bar, starting from months ago. So do the padding segments in the bars for the traffic lights. Would that possibly be a same problem?

macOS 14.6, VSC 1.92.2, APC v0.4.1

@bpawel10
Copy link

I solved it with

"apc.stylesheet": {
  ".inline-titlebar-placeholder": "display: none",
  ".right .header": "padding-left: 4px !important"
},

@lethefrost
Copy link
Author

I solved it with

"apc.stylesheet": {
  ".inline-titlebar-placeholder": "display: none",
  ".right .header": "padding-left: 4px !important"
},

Hi! Thank you for replying me. I just tried it out and it doesn't work for me. But I didn't think of using a CSS patch solution before, so it indeed inspired me! Thanks.

Here's what worked for me:

".no-custom-title-bar-visibility div.monaco-workbench .has-composite-bar": "padding-left: 8px"

The original value, set by the APC extension, was calc(var(--traffic-X) + 68px), which is likely the culprit. This setting above fixes icon ribbons on the top of the right sidebar and on the bottom of both sides. It won't affect the top-left corner, the only place where the traffic light padding is actually needed.

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

No branches or pull requests

2 participants