mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 09:35:38 -05:00
Manage Packages icon position fix (#14528)
* Added CSS to treat manage packages icon position. * Wired up a rough concept showing how I propose to pass a masked-icon class, along with the icon name - derived from the action icon path - to the injected action prior to rendering. The end result is an injected action with an icon which behaves like the others in the notebook toolbar. * Revert "Added CSS to treat manage packages icon position." This reverts commit 215a67244a78224fe8fd2e6480b7e50d37a15dc0. * Revert "Wired up a rough concept showing how I propose to pass a masked-icon class, along with the icon name - derived from the action icon path - to the injected action prior to rendering. The end result is an injected action with an icon which behaves like the others in the notebook toolbar." This reverts commit 1e0cf116602192aa554334d564e855167b0e8bb6. * Modified LabeledMenuItemActionItem to add masked-icon class to injected label element. * Modified LabeledMenuItemActionItem to add masked-icon class and styles for injected label element. * To prevent conflict with Dashboard, I duplicated the existing LabelMenuItemActionItem and odified it. * Added comment to new method. Added non-prefixed mask-image style. * Renamed method and modified comments.
This commit is contained in:
@@ -41,7 +41,7 @@ import { createErrorWithActions } from 'vs/base/common/errorsWithActions';
|
||||
import { toErrorMessage } from 'vs/base/common/errorMessage';
|
||||
import { ILogService } from 'vs/platform/log/common/log';
|
||||
import { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles';
|
||||
import { LabeledMenuItemActionItem, fillInActions } from 'vs/platform/actions/browser/menuEntryActionViewItem';
|
||||
import { MaskedLabeledMenuItemActionItem, fillInActions } from 'vs/platform/actions/browser/menuEntryActionViewItem';
|
||||
import { Button } from 'sql/base/browser/ui/button/button';
|
||||
import { isUndefinedOrNull } from 'vs/base/common/types';
|
||||
import { IBootstrapParams } from 'sql/workbench/services/bootstrap/common/bootstrapParams';
|
||||
@@ -509,7 +509,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
|
||||
action.tooltip = action.label;
|
||||
action.label = '';
|
||||
}
|
||||
return new LabeledMenuItemActionItem(action, this.keybindingService, this.notificationService);
|
||||
return new MaskedLabeledMenuItemActionItem(action, this.keybindingService, this.notificationService);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user