# HG changeset patch # User Martin Geisler # Date 1242685727 -7200 # 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 -r 93a9f4a0e361 -r decf329f00cb templates/spartan/map --- a/templates/spartan/map Mon May 18 23:37:36 2009 +0200 +++ b/templates/spartan/map Tue May 19 00:28:47 2009 +0200 @@ -42,8 +42,12 @@ 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 @@ {linenumber} -
{line|escape}
+
 {line|escape}
' difflineplus = '{linenumber}{line|escape}' difflineminus = '{linenumber}{line|escape}' diff -r 93a9f4a0e361 -r decf329f00cb templates/static/style.css --- a/templates/static/style.css Mon May 18 23:37:36 2009 +0200 +++ b/templates/static/style.css Tue May 19 00:28:47 2009 +0200 @@ -5,7 +5,7 @@ .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 -r 93a9f4a0e361 -r decf329f00cb tests/test-hgweb-commands.out --- a/tests/test-hgweb-commands.out Mon May 18 23:37:36 2009 +0200 +++ b/tests/test-hgweb-commands.out Tue May 19 00:28:47 2009 +0200 @@ -887,7 +887,7 @@ .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; }