|
20 | 20 | x-sortable-handle |
21 | 21 | x-sortable-item="{{ $record['id'] }}" |
22 | 22 | @endif |
23 | | - @if($hasCardAction && $cardAction) |
24 | | - wire:click="mountAction('{{ $cardAction }}', [], @js(['recordKey' => $record['id']]))" |
25 | | - style="cursor: pointer;" |
26 | | - @endif |
27 | 23 | data-card-id="{{ $record['id'] }}" |
28 | 24 | data-position="{{ $record['position'] ?? '' }}" |
29 | 25 | > |
30 | | - <div class="flowforge-card-content p-3"> |
| 26 | + <div class="flowforge-card-content"> |
31 | 27 | <div class="flex items-start justify-between mb-2"> |
32 | | - <h4 class="text-sm font-semibold text-gray-900 dark:text-white">{{ $record['title'] }}</h4> |
| 28 | + <h4 class="text-sm font-semibold text-gray-900 dark:text-white p-3" |
| 29 | + @if($hasCardAction && $cardAction) |
| 30 | + wire:click="mountAction('{{ $cardAction }}', [], @js(['recordKey' => $record['id']]))" |
| 31 | + style="cursor: pointer;" |
| 32 | + @endif |
| 33 | + > |
| 34 | + {{ $record['title'] }} |
| 35 | + </h4> |
33 | 36 |
|
34 | 37 | @if($hasActions) |
35 | | - <div class="relative" @if($hasCardAction) @click.stop @endif> |
| 38 | + <div class="m-3"> |
36 | 39 | <x-filament-actions::group :actions="$processedRecordActions"/> |
37 | 40 | </div> |
38 | 41 | @endif |
39 | 42 | </div> |
40 | 43 |
|
41 | | - {{-- Render card schema with compact spacing --}} |
42 | | - @if(filled($record['schema'])) |
43 | | - {{ $record['schema'] }} |
44 | | - @endif |
| 44 | + <div class="p-3" |
| 45 | + @if($hasCardAction && $cardAction) |
| 46 | + wire:click="mountAction('{{ $cardAction }}', [], @js(['recordKey' => $record['id']]))" |
| 47 | + style="cursor: pointer;" |
| 48 | + @endif |
| 49 | + > |
| 50 | + {{-- Render card schema with compact spacing --}} |
| 51 | + @if(filled($record['schema'])) |
| 52 | + {{ $record['schema'] }} |
| 53 | + @endif |
| 54 | + </div> |
45 | 55 | </div> |
46 | 56 | </div> |
0 commit comments