From f1c533488a89b5ff24cba814e2075f70d544d7f8 Mon Sep 17 00:00:00 2001 From: BOHA Date: Sun, 7 Jun 2026 11:34:19 +0200 Subject: [PATCH] fix(offers): align customer filter with the search field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The customer Select was wrapped in while the search was bare, so in the flex-end FilterBar the Field's label + mb:2 pushed the select ~16px above the search input. Drop the Field wrapper (matching the bare list-page filter pattern used on AuditLog/Warehouse/Orders) and make the default option self-describing ("Všichni zákazníci"). Both controls now sit on the same line. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/admin/pages/Offers.tsx | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/admin/pages/Offers.tsx b/src/admin/pages/Offers.tsx index 75b55f3..21b13e7 100644 --- a/src/admin/pages/Offers.tsx +++ b/src/admin/pages/Offers.tsx @@ -740,22 +740,20 @@ export default function Offers() { /> - - { + setCustomerFilter(value ? Number(value) : ""); + setPage(1); + }} + options={[ + { value: "", label: "Všichni zákazníci" }, + ...(customers ?? []).map((c) => ({ + value: String(c.id), + label: c.name, + })), + ]} + />