Fix editor colour refresh, task row layout, dark date icons and time cell width

- The job editor redraws its customer-coloured header when the board saves
  a customer colour (customer-color-changed).
- Service units and members in the editor's sidebar are in two columns.
- Native controls follow the dark theme (color-scheme), so the date
  picker's calendar icon is light.
- Task status, assignee and due date sit side by side in the editor.
- Each task in the editor has its checklist, comments and images.
- The time sheet's time field shows five characters (00:00).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-30 11:00:53 +02:00
co-authored by Claude Opus 5.5
parent 38c5b43018
commit 1d9bcefb41
9 changed files with 89 additions and 17 deletions
+9
View File
@@ -60,6 +60,15 @@ html {
overflow-y: scroll;
}
/*
* Native controls (the date picker's calendar icon and popup, select arrows,
* scrollbars) follow the page theme. html.dark, not .dark: the header always
* carries .dark.
*/
html.dark {
color-scheme: dark;
}
[x-cloak] {
display: none !important;
}
@@ -10,7 +10,7 @@
'model',
'options',
'hint' => null,
'columns' => true,
'columns' => true, // true: 2 from sm and 3 from lg; 2: always two; false: one
])
@php
@@ -28,7 +28,7 @@
<p id="{{ $id }}-hint" class="text-sm text-zinc-600 dark:text-zinc-200">{{ $hint }}</p>
@endif
<div @class(['grid gap-2', 'sm:grid-cols-2 lg:grid-cols-3' => $columns])>
<div @class(['grid gap-2', 'grid-cols-2' => $columns === 2, 'sm:grid-cols-2 lg:grid-cols-3' => $columns === true])>
@foreach ($options as $option)
<label wire:key="{{ $id }}-{{ $option['value'] }}" class="flex min-h-6 cursor-pointer items-start gap-2 text-sm">
<input
@@ -254,7 +254,7 @@
wire:change="saveCell({{ $taskId }}, '{{ $day }}', $event.target.value)"
@error($errorKey) aria-invalid="true" aria-describedby="{{ $fieldId }}-error" @enderror
@class([
'h-6 w-11 rounded border text-center font-mono text-[11px] focus-visible:outline-2 focus-visible:outline-primary-600 aria-invalid:border-red-700 dark:focus-visible:outline-primary-300 dark:aria-invalid:border-red-300',
'h-6 w-12 rounded border px-0.5 text-center font-mono text-[11px] tabular-nums focus-visible:outline-2 focus-visible:outline-primary-600 aria-invalid:border-red-700 dark:focus-visible:outline-primary-300 dark:aria-invalid:border-red-300',
'border-emerald-600 bg-emerald-50 font-semibold text-emerald-900 dark:border-emerald-500/50 dark:bg-emerald-950/50 dark:text-emerald-100' => $quarters > 0,
'border-slate-400 bg-slate-50 text-slate-700 dark:border-[#5a5e66] dark:bg-[#1b1d20] dark:text-zinc-200' => $quarters === 0,
])