From 58990fc318273f8c8d23e15f0e096ed1014f781e Mon Sep 17 00:00:00 2001 From: Johannes Gilger Date: Sat, 21 Feb 2009 22:29:36 +0100 Subject: [PATCH] diffHighlighter: Fix indent-after-stagebutton bug - display context lines in own
. - Stagebutton no longer is float: left. This fixes ticket #104 Signed-off-by: Johannes Gilger --- html/lib/diffHighlighter.js | 2 +- html/views/commit/commit.css | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/html/lib/diffHighlighter.js b/html/lib/diffHighlighter.js index fbc32a8..cc06fc8 100644 --- a/html/lib/diffHighlighter.js +++ b/html/lib/diffHighlighter.js @@ -214,7 +214,7 @@ var highlightDiff = function(diff, element, callbacks) { } else if (firstChar == " ") { line1 += ++hunk_start_line_1 + "\n"; line2 += ++hunk_start_line_2 + "\n"; - diffContent += l + "\n"; + diffContent += "
" + l + "
"; } } diff --git a/html/views/commit/commit.css b/html/views/commit/commit.css index 18d6a2e..268109d 100644 --- a/html/views/commit/commit.css +++ b/html/views/commit/commit.css @@ -61,7 +61,6 @@ table.diff { } .diff a.stagebutton { - display: block; width: 40px; padding: 0 2px 0 2px; margin-bottom: 4px; @@ -77,7 +76,6 @@ table.diff { text-align: center; -webkit-border-radius: 2px; - float: left; } #multiselect { @@ -94,4 +92,4 @@ table.diff { border: 5px solid #EEE; margin: -5px; padding-left: 20px; -} \ No newline at end of file +}