Skip to content

Commit

Permalink
Merge pull request #19 from awcodes/fix/default-radius
Browse files Browse the repository at this point in the history
Fix: default border radius to match Filament
  • Loading branch information
awcodes authored Feb 4, 2023
2 parents 91682c9 + 938e52b commit 411c0d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion resources/dist/filament-table-repeater.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions resources/views/components/repeater-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@
<table class="w-full">
<thead @class([
'sr-only' => $hasHiddenHeader,
'filament-table-repeater-header rounded-t-lg overflow-hidden' => ! $hasHiddenHeader,
'filament-table-repeater-header rounded-t-xl overflow-hidden' => ! $hasHiddenHeader,
'border-b border-gray-300 dark:border-gray-700' => ! $hasHiddenHeader && $hasContainers,
])>
<tr class="md:divide-x md:rtl:divide-x-reverse md:divide-gray-300 dark:md:divide-gray-700 text-sm">
@foreach ($headers as $key => $header)
<th
@class([
'filament-table-repeater-header-column p-2 text-left bg-gray-200/50 dark:bg-gray-900/60',
'ltr:rounded-l-lg rtl:rounded-r-lg' => ! $hasContainers && $loop->first,
'ltr:rounded-tl-lg rtl:rounded-tr-lg' => $hasContainers && $loop->first,
'ltr:rounded-r-lg rtl:rounded-l-lg' => ! $hasContainers && $loop->last && ! $hasActions,
'ltr:rounded-tr-lg rtl:rounded-tl-lg' => $hasContainers && $loop->last && ! $hasActions,
'ltr:rounded-l-xl rtl:rounded-r-xl' => ! $hasContainers && $loop->first,
'ltr:rounded-tl-xl rtl:rounded-tr-xl' => $hasContainers && $loop->first,
'ltr:rounded-r-xl rtl:rounded-l-xl' => ! $hasContainers && $loop->last && ! $hasActions,
'ltr:rounded-tr-xl rtl:rounded-tl-xl' => $hasContainers && $loop->last && ! $hasActions,
])
@if ($columnWidths && isset($columnWidths[$key]))
style="width: {{ $columnWidths[$key] }}"
Expand All @@ -71,8 +71,8 @@
@if ($hasActions)
<th @class([
'filament-table-repeater-header-column p-2 bg-gray-200/50 dark:bg-gray-900/60 w-px',
'ltr:rounded-r-lg rtl:rounded-l-lg' => ! $hasContainers,
'ltr:rounded-tr-lg rtl:rounded-tl-lg' => $hasContainers,
'ltr:rounded-r-xl rtl:rounded-l-xl' => ! $hasContainers,
'ltr:rounded-tr-xl rtl:rounded-tl-xl' => $hasContainers,
])>
<span class="sr-only">
{{ __('filament-table-repeater::components.repeater.row_actions.label') }}
Expand Down

0 comments on commit 411c0d5

Please sign in to comment.