Skip to content

Commit

Permalink
gitweb: Fix searchbox positioning
Browse files Browse the repository at this point in the history
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 <mwolson@gnu.org>.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed Aug 26, 2007
1 parent 67c10b4 commit 67aca45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.css
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ div.search {
font-size: 100%;
font-weight: normal;
margin: 4px 8px;
position: absolute;
float: right;
top: 56px;
right: 12px
}
Expand Down

0 comments on commit 67aca45

Please sign in to comment.