Skip to content

Commit af52bd5

Browse files
fanf2gitster
authored andcommitted
gitweb: make search help link less ugly
The search help link was a superscript question mark right next to a drop-down menu, which looks misaligned and is a cramped and awkward click target. Remove the superscript tags and add some spacing to fix these nits. Add a title attribute to provide an explanatory mouseover. Signed-off-by: Tony Finch <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 860ccc6 commit af52bd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4030,8 +4030,8 @@ sub print_search_form {
40304030
$cgi->input({-name=>"h", -value=>$search_hash, -type=>"hidden"}) . "\n" .
40314031
$cgi->popup_menu(-name => 'st', -default => 'commit',
40324032
-values => ['commit', 'grep', 'author', 'committer', 'pickaxe']) .
4033-
$cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) .
4034-
" search:\n",
4033+
" " . $cgi->a({-href => href(action=>"search_help"),
4034+
-title => "search help" }, "?") . " search:\n",
40354035
$cgi->textfield(-name => "s", -value => $searchtext, -override => 1) . "\n" .
40364036
"<span title=\"Extended regular expression\">" .
40374037
$cgi->checkbox(-name => 'sr', -value => 1, -label => 're',

0 commit comments

Comments
 (0)