]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Fix searchbox positioning
authorPetr Baudis <redacted>
Sun, 26 Aug 2007 19:31:32 +0000 (21:31 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:12 +0000 (00:07 -0400)
Currently, searchbox is CSS'd to have position: absolute, which has the
unfortunate consequence that if the viewport is too small and can't fit
into the page width together with the navbar, it gets overlapped and part
of the navbar gets obscured. This makes searchbox float: right instead,
thus the navbar simply gets wrapped.

Discovered and fix pointed out by Michael Olson <redacted>.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.css

index 82fc262616666ccef820560d6bb50efa077c98a151575c7a2a08be51b5fe6f9e..2676af7ab62ce5eacd2d4d7c1f552b0f3de358727e49db04a9e8373ca60d8aa5 100644 (file)
@@ -430,7 +430,7 @@ div.search {
        font-size: 100%;
        font-weight: normal;
        margin: 4px 8px;
-       position: absolute;
+       float: right;
        top: 56px;
        right: 12px
 }
This page took 0.264727 seconds and 4 git commands to generate.