From 44e678d16c06d4710144b19fbfab53f5b97d8d1d Mon Sep 17 00:00:00 2001 From: Javier Sagredo Date: Thu, 7 May 2026 01:17:42 +0200 Subject: [PATCH] Center the search box in the topbar MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Search-wrap was pinned to the right edge with margin-left: auto. With Focus chips and Mark-orphans gone from the topbar (previous commit) it had room to breathe — switch to margin: 0 auto so the flex's auto margins absorb leftover space symmetrically and the search lands in the middle. Co-Authored-By: Claude Opus 4.7 (1M context) --- data/viewer.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/viewer.css b/data/viewer.css index 69ead97..92cc21a 100644 --- a/data/viewer.css +++ b/data/viewer.css @@ -284,7 +284,10 @@ body { display: flex; } #search-wrap { position: relative; - margin-left: auto; + /* Both auto margins absorb the leftover space equally, so the + search sits in the middle of the topbar regardless of how much + room the back / title / subtitle take on the left. */ + margin: 0 auto; width: 460px; max-width: 60%; } -- 2.54.0