Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Activity Bar icons are no longer centered when position is set to wide? #94

Open
jonathanlaniado opened this issue May 13, 2021 · 6 comments

Comments

@jonathanlaniado
Copy link

See here:

CleanShot 2021-05-13 at 10 03 18@2x

@lehni
Copy link

lehni commented May 13, 2021

I've had the same problem. A quick work-around is to fix this with some custom CSS. This in your settings.json file should work:

"customizeUI.stylesheet": {
  ".monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item .action-label": "margin: 0 auto;"
}

@jonathanlaniado
Copy link
Author

@lehni, that's a great fix, thank you. Previously, I was using this, but I didn't like the hardcoded pixels.

"customizeUI.stylesheet": {
    "li.action-item.icon": "padding-left: 12.5px;",
},

In any case, I would love to not rely on a custom stylesheet!

@ikai2
Copy link

ikai2 commented May 17, 2021

thank you very much for this fix, I've trying to fix this for hours

@knopp
Copy link
Collaborator

knopp commented May 17, 2021

PRs would be welcome :)

@lehni
Copy link

lehni commented May 22, 2021

I don't have the time to look into the code base, the work-around works for me… But it should be easy to adjust.

@icharge
Copy link

icharge commented Apr 1, 2022

I just add this, so you can move window when workbench is empty (no tabs).

"customizeUI.stylesheet": {
  ".monaco-workbench .part.editor > .content .editor-group-container.empty.active": "-webkit-app-region: drag;"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants