From 73f0258b9770d12b89c33ca1d0718653c2e67e02 Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Thu, 20 Aug 2026 13:12:52 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20mobile=20UI=20=E2=80=94=20touch=20target?= =?UTF-8?q?s,=20safe=20areas,=20text=20sizes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Button: add min-h-11 (44px) for mobile touch targets - NavBar: add safe-area-inset-top for notched phones - NavBar mobile menu: increase link padding from py-2 to py-3 - Footer: increase text size from text-xs to text-sm (16px minimum) - Footer: add px-4 for better mobile spacing - DatePicker: increase calendar cell size on mobile to 44px - Checkbox: add p-3 -m-3 on mobile for 44px touch target (desktop unchanged) --- .../lib/components/booking/DatePicker.svelte | 2 +- .../src/lib/components/layout/NavBar.svelte | 17 +++++++++-------- .../src/lib/components/ui/button/button.svelte | 2 +- .../lib/components/ui/checkbox/checkbox.svelte | 2 +- frontend/src/routes/+layout.svelte | 6 +++--- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/components/booking/DatePicker.svelte b/frontend/src/lib/components/booking/DatePicker.svelte index 5856f2e..0dddff8 100644 --- a/frontend/src/lib/components/booking/DatePicker.svelte +++ b/frontend/src/lib/components/booking/DatePicker.svelte @@ -34,7 +34,7 @@ // Without this the stable isDateUnavailable reference may cause stale availability // after workingHours/availableHours are updated (e.g. after month data loading). isDateUnavailable={(d) => isDateUnavailable(d)} - class="bg-transparent p-0 [--cell-size:--spacing(11)] data-unavailable:line-through data-unavailable:opacity-100 max-sm:[--cell-size:--spacing(10)] md:[--cell-size:--spacing(12)] [&_[data-outside-month]]:pointer-events-none [&_[data-outside-month]]:opacity-0" + class="bg-transparent p-0 [--cell-size:--spacing(11)] data-unavailable:line-through data-unavailable:opacity-100 max-sm:[--cell-size:--spacing(11)] md:[--cell-size:--spacing(12)] [&_[data-outside-month]]:pointer-events-none [&_[data-outside-month]]:opacity-0" weekdayFormat="short" {minValue} {maxValue} diff --git a/frontend/src/lib/components/layout/NavBar.svelte b/frontend/src/lib/components/layout/NavBar.svelte index b9cd442..afc4c28 100644 --- a/frontend/src/lib/components/layout/NavBar.svelte +++ b/frontend/src/lib/components/layout/NavBar.svelte @@ -91,6 +91,7 @@