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 <dot@dotat.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tony Finch committed
Aug 20, 2013 at 17:59 UTC
af52bd5f58eed99608b4681df91ba0e1beeb81d5
1 file changed
+2
-2
gitweb/gitweb.perl
+2
-2
@@ -4030,8 +4030,8 @@ sub print_search_form {
4030
$cgi->input({-name=>"h", -value=>$search_hash, -type=>"hidden"}) . "\n" .
4031
$cgi->popup_menu(-name => 'st', -default => 'commit',
4032
-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",
4035
$cgi->textfield(-name => "s", -value => $searchtext, -override => 1) . "\n" .
4036
"<span title=\"Extended regular expression\">" .
4037
$cgi->checkbox(-name => 'sr', -value => 1, -label => 're',