From 18064a972c3e4a6571f5b5dfde39682ddb2a0587 Mon Sep 17 00:00:00 2001 From: BOHA Date: Sat, 6 Jun 2026 15:54:36 +0200 Subject: [PATCH] fix(mobile): tab bars scroll on phones + combobox 44px touch targets - .admin-tabs: horizontal-scroll + 44px tabs at <=640px so 4-tab bars (WarehouseReports, Invoices/Offers status filters, OffersTemplates) no longer overflow off-screen. - Customer searchable dropdown + warehouse ItemPicker: option rows >=44px, clear button enlarged, list clamped to viewport width at <=640px. Native selects/toggles were already mobile-safe (44px at <=768px). Mobile-only; desktop unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/admin/components.css | 30 ++++++++++++++++++++++++++++++ src/admin/forms.css | 20 ++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/src/admin/components.css b/src/admin/components.css index 02d3e5a..e067eac 100644 --- a/src/admin/components.css +++ b/src/admin/components.css @@ -610,6 +610,25 @@ 0 0 0 1px var(--border-color); } +@media (max-width: 640px) { + .admin-tabs { + display: flex; + max-width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + scrollbar-width: none; + } + + .admin-tabs::-webkit-scrollbar { + display: none; + } + + .admin-tab { + flex: 0 0 auto; + min-height: 44px; + } +} + /* ============================================================================ Empty State ============================================================================ */ @@ -1185,3 +1204,14 @@ color: var(--text-secondary); white-space: nowrap; } + +@media (max-width: 640px) { + .admin-item-picker-list { + max-width: calc(100vw - 24px); + overflow-y: auto; + } + + .admin-item-picker-item { + min-height: 44px; + } +} diff --git a/src/admin/forms.css b/src/admin/forms.css index 102391e..51dc4a9 100644 --- a/src/admin/forms.css +++ b/src/admin/forms.css @@ -488,3 +488,23 @@ color: var(--text-tertiary); font-size: 0.8125rem; } + +@media (max-width: 640px) { + .admin-customer-dropdown { + max-width: calc(100vw - 24px); + overflow-y: auto; + } + + .admin-customer-dropdown-item { + display: flex; + flex-direction: column; + justify-content: center; + min-height: 44px; + } + + .admin-customer-selected .admin-btn-icon { + min-width: 44px; + min-height: 44px; + margin-right: -10px; + } +}