Add room participant moderation

This commit is contained in:
2026-09-03 11:35:05 +02:00
parent e30d2e61aa
commit 2f05e56089
14 changed files with 453 additions and 15 deletions
+7 -11
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { CircleUserRound, Crown } from '@lucide/vue';
import { CircleUserRound } from '@lucide/vue';
import type { RoomSeatProps } from '@/types/room';
@@ -75,22 +75,18 @@ function playerVote(): string | null {
:class="{ 'player-details-above': player.isTopSeat }"
>
<p
class="player-name max-w-32 text-center text-sm leading-tight font-semibold text-slate-100"
class="player-name max-w-32 text-center text-sm leading-tight font-semibold"
:class="
player.is_moderator ? 'text-amber-300' : 'text-slate-100'
"
>
{{ player.name }}
</p>
<div
v-if="player.is_moderator || isCurrentPlayer()"
v-if="isCurrentPlayer()"
class="flex flex-wrap items-center justify-center gap-x-2 gap-y-0.5 text-[11px]"
>
<span
v-if="player.is_moderator"
class="inline-flex items-center gap-1 text-amber-300"
>
<Crown class="size-3 fill-amber-300" aria-hidden="true" />
Moderator
</span>
<span v-if="isCurrentPlayer()" class="text-cyan-300">Du</span>
<span class="text-cyan-300">Du</span>
</div>
</div>