Make Kanban columns visible in dark mode and stack card titles

Columns had the same dark background as the page, so they now use a
darker background with a border. Card titles show the job number on
the first line next to the drag handle and the name below it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 06:06:44 +02:00
co-authored by Claude Opus 5.5
parent 3922c744a7
commit fcad0ea939
@@ -198,7 +198,7 @@ new class extends Component
id="column-{{ $status }}"
wire:key="column-{{ $status }}"
aria-labelledby="column-{{ $status }}-heading"
class="flex min-w-0 flex-col rounded-lg bg-zinc-100 p-3 dark:bg-zinc-800"
class="flex min-w-0 flex-col rounded-lg border border-zinc-200 bg-zinc-100 p-3 dark:border-zinc-700 dark:bg-zinc-950"
>
<h2 id="column-{{ $status }}-heading" class="mb-3 flex items-baseline justify-between gap-2 text-base font-semibold">
{{ __('jobs.statuses.'.$status) }}
@@ -217,18 +217,21 @@ new class extends Component
<li wire:key="job-card-{{ $job->id }}" @if ($canMove) wire:sort:item="{{ $job->id }}" @endif>
<article
aria-labelledby="job-card-{{ $job->id }}-title"
class="space-y-2 rounded-md border border-zinc-200 bg-white p-3 text-sm shadow-sm dark:border-zinc-600 dark:bg-zinc-900"
class="relative space-y-2 rounded-md border border-zinc-200 bg-white p-3 text-sm shadow-sm dark:border-zinc-600 dark:bg-zinc-900"
>
<div class="flex items-start justify-between gap-2">
<h3 id="job-card-{{ $job->id }}-title" class="min-w-0 font-medium break-words" wire:sort:ignore>
@if ($canMove)
<x-icon name="bars-3" class="absolute top-3 right-3 size-5 cursor-grab text-zinc-500 dark:text-zinc-400" aria-hidden="true" />
@endif
{{-- TallStackUI's link is a flex row, so one flex-col span keeps the number above the name. --}}
<h3 id="job-card-{{ $job->id }}-title" class="min-w-0 font-medium" wire:sort:ignore>
<x-link :href="route('jobs.show', $job->id)" navigate>
<span class="whitespace-nowrap">{{ $job->number }}</span> {{ $job->name }}
<span class="flex min-w-0 flex-col">
<span class="pr-7">{{ $job->number }}</span>
<span class="[overflow-wrap:anywhere]">{{ $job->name }}</span>
</span>
</x-link>
</h3>
@if ($canMove)
<x-icon name="bars-3" class="size-5 shrink-0 cursor-grab text-zinc-500 dark:text-zinc-400" aria-hidden="true" />
@endif
</div>
<p class="break-words text-zinc-700 dark:text-zinc-300">{{ $job->customerName }}</p>