[PATCH] diff view: do not hide overflow on very long lines that cannot be wrapped

Thomas De Schampheleire patrickdepinguin at gmail.com
Fri May 1 15:30:50 EDT 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1430507875 -7200
#      Fri May 01 21:17:55 2015 +0200
# Node ID f318ddf79897faeb0d8ba520014d993657249803
# Parent  ca2254ffa17d9d730639e7587177e952bec47b5b
diff view: do not hide overflow on very long lines that cannot be wrapped

When a change contains very long lines that cannot be wrapped because they
contain very long 'words' without spaces, the overflow is currently not
visible at all. This occurrence of such very long non-wrappable words is
pretty uncommon, but can for example happen in comma-separated value files.

Not touching the existing behavior of trying to wrap long lines, this patch
adds horizontal scrollbars for these exceptional cases of unavoidable
overflow.
On normal lines and long lines that can be wrapped, the diff block remains
the same as before.

diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css
--- a/kallithea/public/css/style.css
+++ b/kallithea/public/css/style.css
@@ -4793,7 +4793,6 @@
 }
 div.diffblock.margined {
     margin: 0px 20px 0px 20px;
-    overflow: hidden;
 }
 div.diffblock .code-header {
     border-bottom: 1px solid #CCCCCC;


More information about the kallithea-general mailing list