Merge pull request #12004 from maxunbearable/fix/4653-dashboard-toolbar-font

Changed font sizes in dashboard toolbar and default state id
This commit is contained in:
Andrew Shvayka 2024-11-08 14:24:27 +01:00 committed by GitHub
commit 8af348e91b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@
.mat-mdc-select.select-dashboard-breakpoint {
.mat-mdc-select-value {
max-width: 200px;
font-size: 14px;
}
.mat-mdc-select-arrow {
width: 24px;

View File

@ -22,6 +22,7 @@
.mat-mdc-select.default-state-controller {
.mat-mdc-select-value {
max-width: 200px;
font-size: 14px;
}
.mat-mdc-select-arrow {
width: 24px;

View File

@ -187,7 +187,8 @@ export class DefaultStateControllerComponent extends StateControllerComponent im
}
public getStateName(id: string, state: DashboardState): string {
return this.utils.customTranslation(state.name, id);
const name = this.utils.customTranslation(state.name, id);
return name === this.stateControllerId() ? name.charAt(0).toUpperCase() + name.slice(1) : name;
}
public getCurrentStateName(): string {