From f5d647f05cfc9082582d2a0c4f2dbf3a78ce87d2 Mon Sep 17 00:00:00 2001 From: Udeesha Gautam <46980425+udeeshagautam@users.noreply.github.com> Date: Thu, 27 Jun 2019 13:53:05 -0700 Subject: [PATCH] Bug/toolbar icon revert (#6194) * Change icon size rather than component size * reverting the icon height impact --- .../electron-browser/modelComponents/componentWithIconBase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/workbench/electron-browser/modelComponents/componentWithIconBase.ts b/src/sql/workbench/electron-browser/modelComponents/componentWithIconBase.ts index a70a29a149..db2420d70f 100644 --- a/src/sql/workbench/electron-browser/modelComponents/componentWithIconBase.ts +++ b/src/sql/workbench/electron-browser/modelComponents/componentWithIconBase.ts @@ -47,8 +47,8 @@ export abstract class ComponentWithIconBase extends ComponentBase { removeCSSRulesContainingSelector(this._iconClass); const icon = this.getLightIconPath(this.iconPath); const iconDark = this.getDarkIconPath(this.iconPath) || icon; - createCSSRule(`.icon.${this._iconClass}`, `background-image: url("${icon}");width: ${this.iconWidth};height: ${this.iconHeight};`); - createCSSRule(`.vs-dark .icon.${this._iconClass}, .hc-black .icon.${this._iconClass}`, `background-image: url("${iconDark}");width: ${this.iconWidth};height: ${this.iconHeight};`); + createCSSRule(`.icon.${this._iconClass}`, `background-image: url("${icon}")`); + createCSSRule(`.vs-dark .icon.${this._iconClass}, .hc-black .icon.${this._iconClass}`, `background-image: url("${iconDark}")`); this._changeRef.detectChanges(); } }