formatting

This commit is contained in:
2026-04-12 19:23:30 +02:00
parent 9dcdfb981a
commit 6f19d12964
5 changed files with 36 additions and 40 deletions
+15 -9
View File
@@ -71,7 +71,9 @@ const hasPermission = (actorId: number, permission: string) =>
</div>
<div v-else class="overflow-x-auto">
<table class="divide-border min-w-full divide-y text-sm">
<table
class="divide-border min-w-full divide-y text-sm"
>
<thead
class="bg-muted/40 text-muted-foreground text-left"
>
@@ -95,7 +97,9 @@ const hasPermission = (actorId: number, permission: string) =>
class="bg-background align-top"
>
<td class="px-4 py-4">
<div class="text-foreground font-medium">
<div
class="text-foreground font-medium"
>
{{ user.name }}
</div>
</td>
@@ -131,9 +135,11 @@ const hasPermission = (actorId: number, permission: string) =>
</Badge>
<span
v-if="
(directPermissions[
user.id
] ?? []).length === 0
(
directPermissions[
user.id
] ?? []
).length === 0
"
class="text-muted-foreground"
>
@@ -154,9 +160,7 @@ const hasPermission = (actorId: number, permission: string) =>
>
<label
v-for="option in permissionOptions"
:key="
`${user.id}-${option.value}`
"
:key="`${user.id}-${option.value}`"
class="border-border inline-flex items-center gap-2 rounded-lg border px-3 py-2 text-sm"
>
<input
@@ -171,7 +175,9 @@ const hasPermission = (actorId: number, permission: string) =>
"
class="border-input text-primary focus:ring-ring size-4 rounded"
/>
<span>{{ option.label }}</span>
<span>{{
option.label
}}</span>
</label>
<div class="w-full sm:hidden" />