Elffuss BraidHub

kikocis/dataspace-portal public

main · 1.1 KiBRawPermalink
1<div class="fixed bottom-0 right-0 z-50">
2 <div
3 class="flex flex-row items-center justify-evenly p-2 bg-blue-100 gap-3 rounded-xl h-20">
4 <div *ngFor="let user of users" [ngClass]="minimize ? 'hidden' : ''">
5 <button
6 class="hover:bg-blue-300 cursor-pointer rounded-md text-xs py-2 px-3"
7 [ngClass]="{'bg-blue-300': user.user === currentUser}"
8 (click)="setUser(user)">
9 <div class="flex flex-col">
10 <span class="font-medium">{{ user.role }}</span>
11 <span class="text-gray-500">{{ user.organization }}</span>
12 </div>
13 </button>
14 </div>
15
16 <button
17 class="cursor-pointer flex justify-center items-center w-10 h-10 rounded-full bg-slate-50 text-lg"
18 (click)="hide()">
19 <span class="sr-only">{{ minimize ? 'Expand' : 'Minimize' }}</span>
20 <svg
21 class="w-6 h-6 text-gray-700 transform transition-transform duration-100 ease-linear"
22 viewBox="0 0 24 24"
23 [ngClass]="minimize ? 'rotate-90' : '-rotate-90'">
24 <path fill="currentColor" d="M7 10l5 5 5-5z"></path>
25 </svg>
26 </button>
27 </div>
28</div>