IE display issue
TK Soh
teekaysoh at yahoo.com
Fri Sep 23 04:48:29 CDT 2005
Here's another patch that fix the right-justified line number on IE. Watch out
for line wrapping in the patch (someone need to fix those really long lines).
# HG changeset patch
# User TK Soh <teekaysoh at yahoo.com>
# Node ID 965328004cdd6a99792c21829c9478c187cc0f45
# Parent f633955e9d852205a7892f8b0141b22bafbddfc5
hgweb file: fixed left-justified line numbers on IE v6.0
IE (v6.0) seemed to squash the spaces surrounding the line
numbers, making them appeared as left- instead of being
right-justified.
Testing with IE v6.0 and Firefox 1.0.6.
diff -r f633955e9d85 -r 965328004cdd templates/header.tmpl
--- a/templates/header.tmpl Fri Sep 23 03:18:19 2005
+++ b/templates/header.tmpl Fri Sep 23 09:48:17 2005
@@ -8,7 +8,8 @@
a { text-decoration:none; }
.parity0 { background-color: #dddddd; }
.parity1 { background-color: #eeeeee; }
-.lineno { width: 60px; color: #aaaaaa; font-size: smaller; }
+.lineno { width: 60px; color: #aaaaaa; font-size: smaller;
+ text-align: right; padding-right:1em; }
.plusline { color: green; }
.minusline { color: red; }
.atline { color: purple; }
diff -r f633955e9d85 -r 965328004cdd templates/map
--- a/templates/map Fri Sep 23 03:18:19 2005
+++ b/templates/map Fri Sep 23 09:48:17 2005
@@ -17,7 +17,7 @@
fileannotate = fileannotate.tmpl
filediff = filediff.tmpl
filelog = filelog.tmpl
-fileline = "<div class="parity#parity#"><span class="lineno">#linenumber#
</span>#line|escape#</div>"
+fileline = "<div class="parity#parity#"><span
class="lineno">#linenumber#</span>#line|escape#</div>"
filelogentry = filelogentry.tmpl
annotateline = "<tr class="parity#parity#"><td class="annotate"><a
href="?cmd=changeset;node=#node#">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>"
difflineplus = "<span class="plusline">#line|escape#</span>"
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Mercurial
mailing list