From 5c8644b94b14677b119905dc42281eb07623bb6b Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Thu, 20 Oct 2022 19:31:47 -0700 Subject: [PATCH] fix the server action icon's size issue (#20906) * fix the server action icon's size issue * move the css styles to sql folder --- .../objectExplorer/browser/media/serverTreeActions.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sql/workbench/contrib/objectExplorer/browser/media/serverTreeActions.css b/src/sql/workbench/contrib/objectExplorer/browser/media/serverTreeActions.css index a0e689b38c..fc2cee9659 100644 --- a/src/sql/workbench/contrib/objectExplorer/browser/media/serverTreeActions.css +++ b/src/sql/workbench/contrib/objectExplorer/browser/media/serverTreeActions.css @@ -39,3 +39,11 @@ .monaco-workbench.hc-black .actions-container .action-label.server-page { background-image: url('server_page_inverse.svg') !important; } + +/* styles for action labels - without these, the buttons for the Servers view will not be sized correctly */ +.monaco-pane-view .pane > .pane-header > .actions .action-label.icon, +.monaco-pane-view .pane > .pane-header > .actions .action-label.codicon { + background-size: 16px; + background-position: center center; + background-repeat: no-repeat; +}