From 261b4c053e41dd03c219a588585711237a688e2c Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Tue, 24 Nov 2026 21:59:13 +0100 Subject: [PATCH] Touch screens: finger-sized (44 px) rows, buttons and checkboxes in every side panel and sidebar menu; desktop keeps the compact lists --- public/css/style.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/public/css/style.css b/public/css/style.css index 1d2365a..a2d70bb 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -3171,3 +3171,23 @@ html.night .maplibregl-marker { background: #333; color: #fff; } + +/* Touch screens (tablet in the car, phone): every row and control in the + side panels (Overlays, Tracks & Points, base map, route, …) and the + sidebar menus gets a finger-sized target, ~44 px as Apple/Material + recommend. Desktop (fine pointer) keeps the compact lists. */ +@media (pointer: coarse) { + :is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(label, summary, button, select, .overlays-panel__row, .gpx-tree__point, .gpx-tree__file) { + min-height: 44px; + } + + :is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(button, select) { + min-width: 44px; + } + + :is(.basemap-panel, .gpx-panel) input:is([type="checkbox"], [type="radio"]) { + width: 22px; + height: 22px; + flex-shrink: 0; + } +}