Skip to content

Commit

Permalink
Merge pull request #17 from awcodes/fix/column-widths-without-header
Browse files Browse the repository at this point in the history
Fix: column widths without header row
  • Loading branch information
awcodes authored Feb 4, 2023
2 parents 24a96bf + 63b2019 commit 2705fd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/components/repeater-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ class="filament-table-repeater-rows-wrapper divide-y divide-gray-300 dark:divide
'filament-table-repeater-column p-2',
'has-hidden-label' => $cell->isLabelHidden(),
])
@if ($columnWidths && isset($columnWidths[$cell->getName()]))
style="width: {{ $columnWidths[$cell->getName()] }}"
@endif
>
{{ $cell }}
</td>
Expand All @@ -112,7 +115,7 @@ class="filament-table-repeater-rows-wrapper divide-y divide-gray-300 dark:divide
@endforeach

@if ($hasActions)
<td class="filament-table-repeater-column p-2">
<td class="filament-table-repeater-column p-2 w-px">
<div class="flex items-center md:justify-center">
@unless ($isItemMovementDisabled)
<button
Expand Down

0 comments on commit 2705fd2

Please sign in to comment.