Skip to content

Commit 67aca45

Browse files
Petr Baudisgitster
authored andcommitted
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 <[email protected]>. Signed-off-by: Petr Baudis <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 67c10b4 commit 67aca45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ div.search {
430430
font-size: 100%;
431431
font-weight: normal;
432432
margin: 4px 8px;
433-
position: absolute;
433+
float: right;
434434
top: 56px;
435435
right: 12px
436436
}

0 commit comments

Comments
 (0)