Skip to content

Commit 0378f48

Browse files
optmspclaude
andcommitted
Fluid columns with fixed-width cards (300px max)
Columns expand to fill available space (w-full table, min-width 300px) while cards are capped at max-w-[300px] for consistent sizing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5e7ad0e commit 0378f48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resources/views/livewire/card.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div
1212
@class([
13-
'flowforge-card mb-2 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-2 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 max-w-[300px]',
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,

resources/views/livewire/swimlane-board.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class="flowforge-swimlane-board overflow-x-auto rounded-xl border border-gray-20
2626
}
2727
}"
2828
>
29-
<table class="border-collapse" style="min-width: {{ 180 + ($columnCount * 280) }}px;">
29+
<table class="border-collapse w-full" style="min-width: {{ 180 + ($columnCount * 300) }}px;">
3030
{{-- Sticky Column Header Row --}}
3131
<thead>
3232
<tr>
@@ -40,7 +40,7 @@ class="flowforge-swimlane-board overflow-x-auto rounded-xl border border-gray-20
4040
@endphp
4141
<th
4242
class="sticky top-0 z-20 bg-white dark:bg-gray-900 border-b border-r border-gray-200 dark:border-gray-700 p-3 text-left font-normal"
43-
style="width: 280px; min-width: 280px;"
43+
style="min-width: 300px;"
4444
wire:key="header-{{ $columnId }}"
4545
>
4646
<div class="flex items-center">
@@ -125,7 +125,7 @@ class="w-4 h-4 text-gray-400 dark:text-gray-500 transition-transform duration-20
125125
@endphp
126126
<td
127127
class="border-b border-r border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 p-0"
128-
style="width: 280px; min-width: 280px; vertical-align: top;"
128+
style="min-width: 300px; vertical-align: top;"
129129
wire:key="cell-{{ $cellKey }}"
130130
>
131131
<div x-show="!isCollapsed('{{ $swimlaneId }}')">

0 commit comments

Comments
 (0)