From: Petr Baudis Date: Sun, 26 Aug 2007 19:31:32 +0000 (+0200) Subject: gitweb: Fix searchbox positioning X-Git-Tag: v1.5.3-rc7~19 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/67aca456a3cfa9ab8420a6e171d8eee7b0ad2209 gitweb: Fix searchbox positioning 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 . Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css index 096313bec0..1b8887987f 100644 --- a/gitweb/gitweb.css +++ b/gitweb/gitweb.css @@ -430,7 +430,7 @@ div.search { font-size: 100%; font-weight: normal; margin: 4px 8px; - position: absolute; + float: right; top: 56px; right: 12px }