Skip to content

Commit 4de23eb

Browse files
committed
Refactor card and board components for improved structure and clarity
1 parent f607fbd commit 4de23eb

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

resources/views/components/card-flex.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@
8282
</div>
8383
@endif
8484
@endforeach
85-
</div>
85+
</div>

resources/views/livewire/card.blade.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,29 @@
1818
])
1919
@if($hasPositionIdentifier)
2020
x-sortable-handle
21-
x-sortable-item="{{ $record['id'] }}"
21+
x-sortable-item="{{ $record['id'] }}"
2222
@endif
2323
@if($hasCardAction && $cardAction)
2424
wire:click="mountAction('{{ $cardAction }}', [], @js(['recordKey' => $record['id']]))"
25-
style="cursor: pointer;"
25+
style="cursor: pointer;"
2626
@endif
2727
data-card-id="{{ $record['id'] }}"
2828
data-position="{{ $record['position'] ?? '' }}"
2929
>
3030
<div class="flowforge-card-content p-3">
31-
<div class="flex items-center justify-between mb-2">
31+
<div class="flex items-start justify-between mb-2">
3232
<h4 class="text-sm font-semibold text-gray-900 dark:text-white">{{ $record['title'] }}</h4>
3333

34-
{{-- Render record actions --}}
3534
@if($hasActions)
3635
<div class="relative" @if($hasCardAction) @click.stop @endif>
37-
<x-filament-actions::group :actions="$processedRecordActions" />
36+
<x-filament-actions::group :actions="$processedRecordActions"/>
3837
</div>
3938
@endif
4039
</div>
4140

4241
{{-- Render card schema with compact spacing --}}
4342
@if(filled($record['schema']))
44-
<div class="space-y-1 [&_.fi-sc-flex]:gap-2 [&_.fi-sc-flex.fi-dense]:gap-1 [&_.fi-in-entry]:gap-y-0.5 [&_.fi-in-entry-content-ctn]:gap-x-1.5">
45-
{{ $record['schema'] }}
46-
</div>
43+
{{ $record['schema'] }}
4744
@endif
4845
</div>
4946
</div>

0 commit comments

Comments
 (0)