Skip to content

Commit eb50b00

Browse files
committed
Add Flowforge classes to card and column components for improved styling consistency
1 parent cba4d51 commit eb50b00

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

resources/views/livewire/card.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div
1212
@class([
13-
'mb-3 bg-white dark:bg-gray-900 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden transition-all duration-200 hover:shadow-md',
13+
'flowforge-card mb-3 bg-white dark:bg-gray-900 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden transition-all duration-200 hover:shadow-md',
1414
'cursor-pointer' => $hasActions || $hasCardAction,
1515
'cursor-pointer transition-all duration-100 ease-in-out hover:shadow-lg hover:border-gray-400 active:shadow-md' => $hasCardAction,
1616
'cursor-grab hover:cursor-grabbing' => $hasPositionIdentifier,
@@ -27,7 +27,7 @@
2727
data-card-id="{{ $record['id'] }}"
2828
data-position="{{ $record['position'] ?? '' }}"
2929
>
30-
<div class="p-3">
30+
<div class="flowforge-card-content p-3">
3131
<div class="flex items-center justify-between mb-2">
3232
<h4 class="text-sm font-semibold text-gray-900 dark:text-white">{{ $record['title'] }}</h4>
3333

resources/views/livewire/column.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
@endphp
1717

1818
<div
19-
class="w-[300px] min-w-[300px] flex-shrink-0 border border-gray-200 dark:border-gray-700 shadow-sm dark:shadow-md rounded-xl flex flex-col max-h-full overflow-hidden">
19+
class="flowforge-column w-[300px] min-w-[300px] flex-shrink-0 border border-gray-200 dark:border-gray-700 shadow-sm dark:shadow-md rounded-xl flex flex-col max-h-full overflow-hidden">
2020
<!-- Column Header -->
21-
<div class="flex items-center justify-between py-3 px-4 border-b border-gray-200 dark:border-gray-700">
21+
<div class="flowforge-column-header flex items-center justify-between py-3 px-4 border-b border-gray-200 dark:border-gray-700">
2222
<div class="flex items-center">
2323
<h3 class="text-sm font-medium text-gray-700 dark:text-gray-200">
2424
{{ $column['label'] }}
@@ -78,7 +78,7 @@ class="ms-2"
7878
@if(isset($column['total']) && $column['total'] > count($column['items']))
7979
@scroll.throttle.100ms="handleColumnScroll($event, '{{ $columnId }}')"
8080
@endif
81-
class="p-3 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain kanban-cards"
81+
class="flowforge-column-content p-3 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain kanban-cards"
8282
style="max-height: calc(100vh - 13rem);"
8383
>
8484
@if (isset($column['items']) && count($column['items']) > 0)

src/Concerns/HasTableFromBoard.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function table(Table $table): Table
2323
{
2424
$board = $this->getBoard();
2525

26-
$searchableColumns = collect($board->getSearchableFields())->map(fn ($field) => Column::make($field)->searchable())->toArray();
26+
$searchableColumns = collect($board->getSearchableFields())
27+
->map(fn ($field) => Column::make($field)->searchable())->toArray();
2728

2829
return $table
2930
->query($board->getQuery())

0 commit comments

Comments
 (0)