Skip to content

Commit

Permalink
Merge pull request #131 from emargareten/patch-1
Browse files Browse the repository at this point in the history
Add action button alignment
  • Loading branch information
awcodes authored Nov 13, 2024
2 parents 5140e21 + cb1b3c4 commit beaa9cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"php": "^8.1",
"filament/forms": "^3.1",
"filament/forms": "^3.2.116",
"spatie/laravel-package-tools": "^1.13.5"
},
"require-dev": {
Expand Down
11 changes: 10 additions & 1 deletion resources/views/components/table-repeater.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,16 @@ class="table-repeater-column table-repeater-empty-column p-4 w-px text-center it
@endif

@if ($addAction->isVisible() || filled($visibleExtraActions))
<ul class="relative flex gap-4 justify-center">
<ul
@class([
'relative flex gap-4',
match ($getAddActionAlignment()) {
Alignment::Start, Alignment::Left => 'justify-start',
Alignment::End, Alignment::Right => 'justify-end',
default => 'justify-center',
},
])
>
@if ($addAction->isVisible())
<li>
{{ $addAction }}
Expand Down

0 comments on commit beaa9cd

Please sign in to comment.