Skip to content

Commit 8c8f5c8

Browse files
committed
fix: improve card click handling and padding structure
1 parent 569b258 commit 8c8f5c8

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

resources/views/livewire/card.blade.php

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,37 @@
2020
x-sortable-handle
2121
x-sortable-item="{{ $record['id'] }}"
2222
@endif
23-
@if($hasCardAction && $cardAction)
24-
wire:click="mountAction('{{ $cardAction }}', [], @js(['recordKey' => $record['id']]))"
25-
style="cursor: pointer;"
26-
@endif
2723
data-card-id="{{ $record['id'] }}"
2824
data-position="{{ $record['position'] ?? '' }}"
2925
>
30-
<div class="flowforge-card-content p-3">
26+
<div class="flowforge-card-content">
3127
<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>
3336

3437
@if($hasActions)
35-
<div class="relative" @if($hasCardAction) @click.stop @endif>
38+
<div class="m-3">
3639
<x-filament-actions::group :actions="$processedRecordActions"/>
3740
</div>
3841
@endif
3942
</div>
4043

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>
4555
</div>
4656
</div>

0 commit comments

Comments
 (0)