formatting
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user