fix thead cols nums and tbody nums

This commit is contained in:
Jordan Blasenhauer 2024-06-19 16:48:01 +02:00
parent ed301b6dd2
commit 9ce153ca0c
3 changed files with 11 additions and 7 deletions

View file

@ -1351,8 +1351,12 @@ body {
@apply appearance-none block w-full col-span-12 grid grid-cols-12;
}
.table-header-row {
@apply appearance-none block col-span-12 grid grid-cols-12;
}
.table-header-item {
@apply appearance-none block dark:text-gray-300 pb-1 text-sm font-bold m-0 border-b border-gray-400;
@apply appearance-none block dark:text-gray-300 pb-1 text-left text-sm font-bold m-0 border-b border-gray-400;
}
.table-content {

File diff suppressed because one or more lines are too long

View file

@ -186,11 +186,11 @@ onMounted(() => {
class="table-header"
:style="{ paddingRight: table.overflow }"
>
<tr
v-for="(head, id) in props.header"
:class="['table-header-item', `col-span-${props.positions[id]}`]"
>
<th>
<tr class="table-header-row">
<th
v-for="(head, id) in props.header"
:class="['table-header-item', `col-span-${props.positions[id]}`]"
>
{{ $t(head, head) }}
</th>
</tr>