Show the Kanban columns as a carousel on phones, enlarge time sheet text
Below lg the board's columns form a snapping carousel with a strip of the neighbouring columns on both sides, previous/next stage buttons and a "Vaihe 2/7" status. A card dragged to the carousel's edge turns it to the next column in that direction, and on while held there; Sortable's own auto-scroll stays on only on desktop. In the weekly time sheet the hour fields use a 14 px normal-weight font and customer names are text-sm instead of text-xs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -131,8 +131,8 @@
|
||||
<tr wire:key="{{ $section }}-customer-{{ $customer->customerId }}">
|
||||
<td colspan="{{ $columnCount }}" class="p-0">
|
||||
<div style="background-color: {{ $color->value }}; color: {{ $color->textColor() }}" class="flex items-center justify-between gap-3 px-3 py-1.5">
|
||||
<span class="flex items-center gap-2 text-xs font-bold tracking-wide">
|
||||
<x-icon name="building-office" class="size-3.5 shrink-0" aria-hidden="true" />
|
||||
<span class="flex items-center gap-2 text-sm font-bold tracking-wide">
|
||||
<x-icon name="building-office" class="size-4 shrink-0" aria-hidden="true" />
|
||||
<span>{{ $customer->name }}</span>
|
||||
<span class="rounded bg-black/15 px-1.5 text-[10px] font-medium">{{ __('time.sheet.customer') }}</span>
|
||||
</span>
|
||||
@@ -254,8 +254,8 @@
|
||||
wire:change="saveCell({{ $taskId }}, '{{ $day }}', $event.target.value)"
|
||||
@error($errorKey) aria-invalid="true" aria-describedby="{{ $fieldId }}-error" @enderror
|
||||
@class([
|
||||
'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,
|
||||
'h-7 w-14 rounded border px-0.5 text-center font-mono text-sm font-normal 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 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,
|
||||
])
|
||||
/>
|
||||
@@ -266,7 +266,7 @@
|
||||
class="flex h-6 w-6 items-center justify-center rounded border border-slate-400 bg-slate-100 text-xs font-bold text-slate-800 transition select-none hover:bg-emerald-100 focus-visible:outline-2 focus-visible:outline-primary-600 dark:border-[#5a5e66] dark:bg-[#1b1d20] dark:text-zinc-100 dark:hover:bg-emerald-500/25 dark:focus-visible:outline-primary-300"
|
||||
>+</button>
|
||||
@else
|
||||
<span class="font-mono text-[11px]">{{ WorkedHours::formatClock($quarters) }}</span>
|
||||
<span class="font-mono text-sm">{{ WorkedHours::formatClock($quarters) }}</span>
|
||||
@if ($cell?->approved)
|
||||
<x-icon name="check-circle" class="size-3.5" aria-hidden="true" />
|
||||
<span class="sr-only">{{ __('time.approval.cell_approved') }}</span>
|
||||
|
||||
Reference in New Issue
Block a user