Browse Source

Bugfix/fix alignment in menu of impersonation mode (#2284)

* Fix alignment

* Update changelog
pull/2289/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
2519c3ffb0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/client/src/app/components/header/header.component.html

1
CHANGELOG.md

@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed the alignment in the header navigation - Fixed the alignment in the header navigation
- Fixed the alignment in the menu of the impersonation mode
## 1.304.0 - 2023-08-27 ## 1.304.0 - 2023-08-27

4
apps/client/src/app/components/header/header.component.html

@ -129,6 +129,7 @@
<mat-menu #accountMenu="matMenu" xPosition="before"> <mat-menu #accountMenu="matMenu" xPosition="before">
<ng-container *ngIf="user?.access?.length > 0"> <ng-container *ngIf="user?.access?.length > 0">
<button mat-menu-item (click)="impersonateAccount(null)"> <button mat-menu-item (click)="impersonateAccount(null)">
<span class="align-items-center d-flex">
<ion-icon <ion-icon
*ngIf="user?.access?.length > 0" *ngIf="user?.access?.length > 0"
class="mr-2" class="mr-2"
@ -139,12 +140,14 @@
" "
></ion-icon> ></ion-icon>
<span i18n>Me</span> <span i18n>Me</span>
</span>
</button> </button>
<button <button
*ngFor="let accessItem of user?.access" *ngFor="let accessItem of user?.access"
mat-menu-item mat-menu-item
(click)="impersonateAccount(accessItem.id)" (click)="impersonateAccount(accessItem.id)"
> >
<span class="align-items-center d-flex">
<ion-icon <ion-icon
class="mr-2" class="mr-2"
name="square-outline" name="square-outline"
@ -156,6 +159,7 @@
></ion-icon> ></ion-icon>
<span *ngIf="accessItem.alias">{{ accessItem.alias }}</span> <span *ngIf="accessItem.alias">{{ accessItem.alias }}</span>
<span *ngIf="!accessItem.alias" i18n>User</span> <span *ngIf="!accessItem.alias" i18n>User</span>
</span>
</button> </button>
<hr class="m-0" /> <hr class="m-0" />
</ng-container> </ng-container>

Loading…
Cancel
Save