hgweb: avoid line wrap between revision and annotate-info (issue5398)
authorTooru Fujisawa <arai.unmht@gmail.com>
Sat, 08 Oct 2016 19:32:54 +0900
changeset 30074 8f34e217338b
parent 30073 aa23c93e636d
child 30075 2c8ec8c2ddfe
hgweb: avoid line wrap between revision and annotate-info (issue5398) Add white-space: nowrap to td.annotate to avoid wrapping div.annotate-info into next line if there is revision number in the same cell, as it is hard to mouse over div.annotate-info if it's wrapped into next line.
mercurial/templates/static/style-gitweb.css
mercurial/templates/static/style-monoblue.css
mercurial/templates/static/style-paper.css
mercurial/templates/static/style.css
tests/test-hgweb-commands.t
tests/test-hgweb.t
--- a/mercurial/templates/static/style-gitweb.css	Sat Oct 08 16:10:58 2016 +0200
+++ b/mercurial/templates/static/style-gitweb.css	Sat Oct 08 19:32:54 2016 +0900
@@ -55,6 +55,9 @@
 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
 tr.thisrev a { color:#999999; text-decoration: none; }
 tr.thisrev pre { color:#009900; }
+td.annotate {
+  white-space: nowrap;
+}
 div.annotate-info {
   display: none;
   position: absolute;
--- a/mercurial/templates/static/style-monoblue.css	Sat Oct 08 16:10:58 2016 +0200
+++ b/mercurial/templates/static/style-monoblue.css	Sat Oct 08 19:32:54 2016 +0900
@@ -335,6 +335,9 @@
 }
 tr.thisrev a { color:#999999; text-decoration: none; }
 tr.thisrev td.source { color:#009900; }
+td.annotate {
+  white-space: nowrap;
+}
 div.annotate-info {
   display: none;
   position: absolute;
--- a/mercurial/templates/static/style-paper.css	Sat Oct 08 16:10:58 2016 +0200
+++ b/mercurial/templates/static/style-paper.css	Sat Oct 08 19:32:54 2016 +0900
@@ -210,6 +210,9 @@
 .bigtable td.source { font-size: inherit; }
 tr.thisrev a { color:#999999; text-decoration: none; }
 tr.thisrev td.source { color:#009900; }
+td.annotate {
+  white-space: nowrap;
+}
 div.annotate-info {
   display: none;
   position: absolute;
--- a/mercurial/templates/static/style.css	Sat Oct 08 16:10:58 2016 +0200
+++ b/mercurial/templates/static/style.css	Sat Oct 08 19:32:54 2016 +0900
@@ -12,6 +12,9 @@
 .annotate { font-size: smaller; text-align: right; padding-right: 1em; }
 tr.thisrev a { color:#999999; text-decoration: none; }
 tr.thisrev pre { color:#009900; }
+td.annotate {
+  white-space: nowrap;
+}
 div.annotate-info {
   display: none;
   position: absolute;
--- a/tests/test-hgweb-commands.t	Sat Oct 08 16:10:58 2016 +0200
+++ b/tests/test-hgweb-commands.t	Sat Oct 08 19:32:54 2016 +0900
@@ -1965,6 +1965,9 @@
   .annotate { font-size: smaller; text-align: right; padding-right: 1em; }
   tr.thisrev a { color:#999999; text-decoration: none; }
   tr.thisrev pre { color:#009900; }
+  td.annotate {
+    white-space: nowrap;
+  }
   div.annotate-info {
     display: none;
     position: absolute;
--- a/tests/test-hgweb.t	Sat Oct 08 16:10:58 2016 +0200
+++ b/tests/test-hgweb.t	Sat Oct 08 19:32:54 2016 +0900
@@ -340,7 +340,7 @@
 
   $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   200 Script output follows
-  content-length: 6947
+  content-length: 6986
   content-type: text/css
   
   body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
@@ -400,6 +400,9 @@
   div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
   tr.thisrev a { color:#999999; text-decoration: none; }
   tr.thisrev pre { color:#009900; }
+  td.annotate {
+    white-space: nowrap;
+  }
   div.annotate-info {
     display: none;
     position: absolute;