From: Javier Sagredo Date: Wed, 6 May 2026 23:17:42 +0000 (+0200) Subject: Center the search box in the topbar X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=44e678d16c06d4710144b19fbfab53f5b97d8d1d;p=classgraph.git Center the search box in the topbar 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) --- 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%; }