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">
|
||||
<mat-icon>language</mat-icon>
|
||||
</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">
|
||||
<div *ngFor="let lang of languages">
|
||||
<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;
|
||||
}
|
||||
|
||||
::ng-deep.lang-parent {
|
||||
width: fit-content !important;
|
||||
min-width: auto !important;
|
||||
}
|
||||
|
||||
::ng-deep.lang-menu {
|
||||
border-color: transparent;
|
||||
padding: 8px;
|
||||
|
|
Loading…
Reference in New Issue