improved language menu styling
This commit is contained in:
parent
a648466b45
commit
e5b1ca595e
|
@ -40,7 +40,7 @@
|
||||||
<button mat-icon-button [matMenuTriggerFor]="languageMenu" [matTooltip]="this.getCurrentLanguage().label | translate">
|
<button mat-icon-button [matMenuTriggerFor]="languageMenu" [matTooltip]="this.getCurrentLanguage().label | translate">
|
||||||
<mat-icon>language</mat-icon>
|
<mat-icon>language</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<mat-menu #languageMenu="matMenu">
|
<mat-menu #languageMenu="matMenu" class="lang-parent">
|
||||||
<mat-button-toggle-group class="lang-menu" vertical (change)="onLanguageSelected($event)" [value]="this.getCurrentLanguage().value">
|
<mat-button-toggle-group class="lang-menu" vertical (change)="onLanguageSelected($event)" [value]="this.getCurrentLanguage().value">
|
||||||
<div *ngFor="let lang of languages">
|
<div *ngFor="let lang of languages">
|
||||||
<mat-button-toggle class="lang-button" [value]="lang.value">{{lang.label | translate}}</mat-button-toggle>
|
<mat-button-toggle class="lang-button" [value]="lang.value">{{lang.label | translate}}</mat-button-toggle>
|
||||||
|
|
|
@ -21,6 +21,11 @@ $mat-card-header-size: 40px !default;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::ng-deep.lang-parent {
|
||||||
|
width: fit-content !important;
|
||||||
|
min-width: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
::ng-deep.lang-menu {
|
::ng-deep.lang-menu {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
|
Loading…
Reference in New Issue