Skip to content

Commit

Permalink
Update action.ts (#8601)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 authored Jul 22, 2024
1 parent 68157c3 commit 62001dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export abstract class BaseAction extends Base implements IAction {
return this.enabled !== undefined && !this.enabled;
}
public get canShrink() {
return !!this.iconName;
return !this.disableShrink && !!this.iconName;
}
public get hasTitle(): boolean {
return (
Expand Down Expand Up @@ -610,4 +610,4 @@ export class ActionDropdownViewModel {
public dispose(): void {
this.removePopupCallbacks();
}
}
}

0 comments on commit 62001dd

Please sign in to comment.