From 8cd2eb1b3273e8f874c62e0b508ced1d3f34422a Mon Sep 17 00:00:00 2001 From: SteVen Batten <6561887+sbatten@users.noreply.github.com> Date: Mon, 30 Jan 2023 09:19:31 -0800 Subject: [PATCH] remove extra margin/padding for CC (#172650) refs #157437 --- .../browser/parts/titlebar/media/titlebarpart.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css b/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css index de7d0398b901d..9e93446743187 100644 --- a/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css +++ b/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css @@ -127,7 +127,6 @@ /* Window Title Menu */ .monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center { z-index: 2500; - padding: 0 8px; } /* MacOS Desktop supports click event despite `drag` and therefore we don't need to clear it */ @@ -159,7 +158,7 @@ background-color: var(--vscode-commandCenter-background); border: 1px solid var(--vscode-commandCenter-border); overflow: hidden; - margin: 0 6px; + margin-left: 6px; border-top-left-radius: 6px; border-bottom-left-radius: 6px; border-top-right-radius: 6px; @@ -169,6 +168,10 @@ max-width: 600px; } +.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center:only-child { + margin-left: 0; /* no margin if there is only the command center, without nav buttons */ +} + .monaco-workbench .part.titlebar.inactive > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center { color: var(--vscode-titleBar-inactiveForeground); border-color: var(--vscode-commandCenter-inactiveBorder) !important;