# HG changeset patch # User Mads Kiilerich # Date 1405701954 -7200 # Node ID f22d103ba9e8866d0ee87da4f1426ed1e68d4b9f # Parent 03d129da0e17bdee3eab849109baf45bef321359 changelog: use css for message expand and make it toggle so it also can be collapsed again diff -r 03d129da0e17 -r f22d103ba9e8 kallithea/public/css/style.css --- a/kallithea/public/css/style.css Fri Jul 18 18:44:54 2014 +0200 +++ b/kallithea/public/css/style.css Fri Jul 18 18:45:54 2014 +0200 @@ -2635,6 +2635,18 @@ height: 1.1em; } +#graph_content_pr .compare_view_commits .message { + white-space: normal !important; + padding: 0 !important; + height: 1.1em; +} + +#graph_content .container .mid .message.expanded, +#graph_content_pr .compare_view_commits .message.expanded { + height: auto; + margin: 4px 0px 4px 0px; +} + #graph_content .container .extra-container { display: block; position: absolute; diff -r 03d129da0e17 -r f22d103ba9e8 kallithea/templates/changelog/changelog.html --- a/kallithea/templates/changelog/changelog.html Fri Jul 18 18:44:54 2014 +0200 +++ b/kallithea/templates/changelog/changelog.html Fri Jul 18 18:45:54 2014 +0200 @@ -259,9 +259,8 @@ } $('.expand_commit').on('click',function(e){ - $(this).children('i').hide(); var cid = $(this).attr('commit_id'); - $('#C-'+cid).css({'height': 'auto', 'margin': '4px 0px 4px 0px'}) + $('#C-'+cid).toggleClass('expanded'); //redraw the graph, r and jsdata are bound outside function r.render(jsdata,100); diff -r 03d129da0e17 -r f22d103ba9e8 kallithea/templates/compare/compare_cs.html --- a/kallithea/templates/compare/compare_cs.html Fri Jul 18 18:44:54 2014 +0200 +++ b/kallithea/templates/compare/compare_cs.html Fri Jul 18 18:45:54 2014 +0200 @@ -32,7 +32,7 @@ -
${h.urlify_commit(cs.message, c.repo_name)}
+
${h.urlify_commit(cs.message, c.repo_name)}
%endfor @@ -72,9 +72,8 @@