From 1fe81b039cb3be76e44747e786e75ab31cb5097d Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 15 Jun 2016 14:59:23 +0200 Subject: [PATCH] fix width regression --- src/vs/platform/actions/workbench/actionBarContributions.ts | 6 ++++-- .../workbench/browser/parts/editor/media/titlecontrol.css | 6 +----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/vs/platform/actions/workbench/actionBarContributions.ts b/src/vs/platform/actions/workbench/actionBarContributions.ts index 64f6f6e6cc0..1135e925176 100644 --- a/src/vs/platform/actions/workbench/actionBarContributions.ts +++ b/src/vs/platform/actions/workbench/actionBarContributions.ts @@ -80,8 +80,10 @@ class Contributor extends ActionBarContributor { } public getActionItem(context: any, action: Action): BaseActionItem { - const uri = this._getResource(context); - return new CommandItem(uri, action); + if (this.hasActions(context)) { + const uri = this._getResource(context); + return new CommandItem(uri, action); + } } } diff --git a/src/vs/workbench/browser/parts/editor/media/titlecontrol.css b/src/vs/workbench/browser/parts/editor/media/titlecontrol.css index 9e9fee2eac5..631ade14a57 100644 --- a/src/vs/workbench/browser/parts/editor/media/titlecontrol.css +++ b/src/vs/workbench/browser/parts/editor/media/titlecontrol.css @@ -52,11 +52,7 @@ display: block; height: 35px; line-height: 35px; -} - -.monaco-workbench > .part.editor > .content > .one-editor-container > .title .title-actions .action-label.icon, -.monaco-workbench > .part.editor > .content > .one-editor-container > .title .group-actions .action-label.icon { - width: 28px; + min-width: 28px; background-size: 16px; background-position: center center; background-repeat: no-repeat; -- GitLab