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 @@ -2953,6 +2953,17 @@ table.code-browser .browser-file { padding: 2px 0px 0px 2px; float: left; } +.diffblock.twoway { + overflow: visible; +} +.diffblock.twoway .diff-actions { + padding-top: 0; +} +.diffblock.twoway .diff-actions label input { + margin: -5px 5px 0 10px; + position: relative; + top: 3px; +} .diffblock .diff-menu ul li { padding: 0px 0px 0px 0px !important; } diff --git a/kallithea/templates/files/diff_2way.html b/kallithea/templates/files/diff_2way.html --- a/kallithea/templates/files/diff_2way.html +++ b/kallithea/templates/files/diff_2way.html @@ -31,8 +31,8 @@ ${self.repo_context_bar('changelog')} ${self.breadcrumbs()} -
-
+
+
@@ -68,7 +68,7 @@ var orig2_url = '${h.url('files_raw_home $(document).ready(function () { $('#compare').mergely({ width: 'auto', - height: '600', + height: $(window).height() - $('#compare').offset().top - $('#footer').height() - 35, fgcolor: {a:'#ddffdd',c:'#cccccc',d:'#ffdddd'}, bgcolor: '#fff', viewport: true, @@ -91,6 +91,9 @@ $(document).ready(function () { } } }); + // recompute width - avoids overflow and horizontal scrollbar + $('#compare').mergely('resize'); + $('#ignorews').change(function(e){ var val = e.currentTarget.checked; $('#compare').mergely('options', {ignorews: val});