# HG changeset patch # User Martin Geisler # Date 2009-05-18 22:28:47 # Node ID decf329f00cbe22f2eb0b9739cc016e0052f2424 # Parent 93a9f4a0e3610803ff21c9c9a4016f597c8d51a0 spartan: ensure equal heights for file and annotate views The display used to jump up and down when switching from the file view to the annotate view. It now stays still: when switching from the file view to the annotate view it looks like the file content is simply right-shifted to make room for the author names. diff --git a/templates/spartan/map b/templates/spartan/map --- a/templates/spartan/map +++ b/templates/spartan/map @@ -42,8 +42,12 @@ filerevision = filerevision.tmpl fileannotate = fileannotate.tmpl filediff = filediff.tmpl filelog = filelog.tmpl -fileline = '
{linenumber}{line|escape}
' +fileline = '
{linenumber} {line|escape}
' filelogentry = filelogentry.tmpl + +# The   ensures that all table cells have content (even if there +# is an empty line in the annotated file), which in turn ensures that +# all table rows have equal height. annotateline = ' @@ -53,7 +57,7 @@ annotateline = ' {linenumber} -
{line|escape}
+
 {line|escape}
' difflineplus = '{linenumber}{line|escape}' difflineminus = '{linenumber}{line|escape}' diff --git a/templates/static/style.css b/templates/static/style.css --- a/templates/static/style.css +++ b/templates/static/style.css @@ -5,7 +5,7 @@ a { text-decoration:none; } .parity0 { background-color: #ddd; } .parity1 { background-color: #eee; } .lineno { width: 60px; color: #aaa; font-size: smaller; - text-align: right; padding-right:1em; } + text-align: right; } .plusline { color: green; } .minusline { color: red; } .atline { color: purple; } diff --git a/tests/test-hgweb-commands.out b/tests/test-hgweb-commands.out --- a/tests/test-hgweb-commands.out +++ b/tests/test-hgweb-commands.out @@ -887,7 +887,7 @@ a { text-decoration:none; } .parity0 { background-color: #ddd; } .parity1 { background-color: #eee; } .lineno { width: 60px; color: #aaa; font-size: smaller; - text-align: right; padding-right:1em; } + text-align: right; } .plusline { color: green; } .minusline { color: red; } .atline { color: purple; }