From: Tony Finch Date: Tue, 20 Aug 2013 16:59:54 +0000 (+0100) Subject: gitweb: make search help link less ugly X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/51b38a77a5489bd5cd8c6c94e1e44f9b49e4fb91367ff2a8feafb4d26c270916?ds=sidebyside 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 Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index de76eb1..4c8c144 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -4036,8 +4036,8 @@ sub print_search_form { $cgi->input({-name=>"h", -value=>$search_hash, -type=>"hidden"}) . "\n" . $cgi->popup_menu(-name => 'st', -default => 'commit', -values => ['commit', 'grep', 'author', 'committer', 'pickaxe']) . - $cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) . - " search:\n", + " " . $cgi->a({-href => href(action=>"search_help"), + -title => "search help" }, "?") . " search:\n", $cgi->textfield(-name => "s", -value => $searchtext, -override => 1) . "\n" . "" . $cgi->checkbox(-name => 'sr', -value => 1, -label => 're',