Skip to content
Snippets Groups Projects
Commit 2d39474d authored by jojohoch's avatar jojohoch
Browse files

[editor] Move badge style to ShowStateVariablesButtonComponent

parent d8839a74
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,24 @@ import { UnitService } from 'editor/src/app/services/unit.service'; ...@@ -9,11 +9,24 @@ import { UnitService } from 'editor/src/app/services/unit.service';
color="primary" color="primary"
matBadgeColor="accent" matBadgeColor="accent"
[matBadge]="stateVariablesCount" [matBadge]="stateVariablesCount"
[style.width.%]="100"
(click)="showStateVariablesDialog()"> (click)="showStateVariablesDialog()">
<mat-icon>integration_instructions</mat-icon> <mat-icon>integration_instructions</mat-icon>
<span>{{'stateVariable' | translate}}</span> <span>{{'stateVariable' | translate}}</span>
</button>` </button>`,
styles: [`
button {
text-align: left;
font-size: medium;
width: 100%;
display: inline-block;
}
:host ::ng-deep .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content {
right: 12px;
}
:host ::ng-deep .mat-badge-medium.mat-badge-above .mat-badge-content {
top: 8px;
}
`]
}) })
export class ShowStateVariablesButtonComponent { export class ShowStateVariablesButtonComponent {
......
...@@ -50,11 +50,3 @@ button { ...@@ -50,11 +50,3 @@ button {
.button-group { .button-group {
border: 3px groove; border: 3px groove;
} }
:host ::ng-deep .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content {
right: 6px;
}
:host ::ng-deep .mat-badge-medium.mat-badge-above .mat-badge-content {
top: 6px;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment