clickOutside Fix, Label rename
This commit is contained in:
@@ -41,13 +41,13 @@ import { PopoverService } from './services/popover.service';
|
||||
</div>
|
||||
|
||||
<!-- User-Bereich -->
|
||||
<div appClickOutside class="relative">
|
||||
<div appClickOutside class="relative" (clickOutside)="showDropdown = false">
|
||||
<img *ngIf="photoURL" [src]="photoURL" alt="User Photo" class="w-10 h-10 rounded-full cursor-pointer" (click)="toggleDropdown()" referrerpolicy="no-referrer" crossorigin="anonymous" />
|
||||
<div *ngIf="!photoURL" class="image-placeholder w-10 h-10 rounded-full cursor-pointer bg-gray-300"></div>
|
||||
|
||||
<!-- Dropdown -->
|
||||
<div *ngIf="showDropdown" class="absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg z-10">
|
||||
<button (click)="logout()" class="block w-full text-left px-4 py-2 text-gray-700 hover:bg-gray-100">Abmelden</button>
|
||||
<button (click)="logout()" class="block w-full text-left px-4 py-2 text-gray-700 hover:bg-gray-100">Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user