File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
resources/views/components Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
' instantSave' => false ,
7
7
' value' => null ,
8
8
' hideLabel' => false ,
9
+ ' fullWidth' => false ,
9
10
] )
10
11
11
- <div class =" flex flex-row items-center py-1 form-control min-w-fit dark:hover:bg-coolgray-100" >
12
+ <div @class ([
13
+ ' flex flex-row items-center gap-4 px-2 py-1 form-control min-w-fit dark:hover:bg-coolgray-100' ,
14
+ ' w-full' => $fullWidth ,
15
+ ] )>
12
16
@if (! $hideLabel )
13
17
<label class =" flex gap-4 px-0 min-w-fit label" >
14
18
<span class =" flex gap-2" >
Original file line number Diff line number Diff line change @@ -181,14 +181,10 @@ class="flex absolute top-2 right-2 justify-center items-center w-8 h-8 rounded-f
181
181
</div >
182
182
@foreach ($checkboxes as $index => $checkbox )
183
183
<div class =" flex justify-between items-center mb-2" >
184
- <label for =" {{ $checkbox [' id' ] } }"
185
- class =" flex-grow pr-4 text-sm leading-5 text-gray-700 dark:text-gray-300" >
186
- {{ $checkbox [' label' ] } }
187
- </label >
188
- <x-forms .checkbox :id =" $checkbox['id']" :wire:model =" $checkbox['id']"
184
+ <x-forms .checkbox fullWidth :label =" $checkbox['label']" :id =" $checkbox['id']"
185
+ :wire:model =" $checkbox['id']"
189
186
x-on:change =" toggleAction('{{ $checkbox [' id' ] } } ')" :checked =" $this->{$checkbox['id']}"
190
- x-bind:checked =" selectedActions.includes('{{ $checkbox [' id' ] } } ')"
191
- class =" flex-shrink-0" :hideLabel =" true" />
187
+ x-bind:checked =" selectedActions.includes('{{ $checkbox [' id' ] } } ')" />
192
188
</div >
193
189
@endforeach
194
190
</div >
You can’t perform that action at this time.
0 commit comments