Skip to content

Commit 7460013

Browse files
committed
Fix gap of tree actions
1 parent 243048a commit 7460013

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

resources/views/components/actions/index.blade.php

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function ($action) use ($record): bool {
2424
<div
2525
{{
2626
$attributes->class([
27-
'fi-ta-actions flex shrink-0 items-center gap-3',
27+
'fi-tree-actions flex shrink-0 items-center gap-3',
2828
'flex-wrap' => $wrap,
2929
'sm:flex-nowrap' => $wrap === '-sm',
3030
match ($alignment) {
@@ -36,26 +36,5 @@ function ($action) use ($record): bool {
3636
])
3737
}}
3838
>
39-
@foreach ($actions as $action)
40-
@php
41-
$labeledFromBreakpoint = $action->getLabeledFromBreakpoint();
42-
@endphp
43-
44-
<span
45-
@class([
46-
'inline-flex',
47-
'-mx-2' => $action->isIconButton() || $labeledFromBreakpoint,
48-
match ($labeledFromBreakpoint) {
49-
'sm' => 'sm:mx-0',
50-
'md' => 'md:mx-0',
51-
'lg' => 'lg:mx-0',
52-
'xl' => 'xl:mx-0',
53-
'2xl' => '2xl:mx-0',
54-
default => null,
55-
},
56-
])
57-
>
58-
{{ $action }}
59-
</span>
60-
@endforeach
39+
<x-filament-actions::actions :actions="$actions"/>
6140
</div>

0 commit comments

Comments
 (0)