]> Repositorios git - classgraph.git/commitdiff
Center the search box in the topbar
authorJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:17:42 +0000 (01:17 +0200)
committerJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:51:06 +0000 (01:51 +0200)
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) <[email protected]>
data/viewer.css

index 69ead975e6856331d4fdc283a04d8f8b790bc277..92cc21a720c55a8d9c4830db18d0c5a79d2facd7 100644 (file)
@@ -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%;
 }