]> source.dussan.org Git - gitea.git/commitdiff
Display multi-line commit message on commit diff page.
authorTony Tsang <tony@uniongate.com.hk>
Fri, 5 Dec 2014 02:33:22 +0000 (10:33 +0800)
committerTony Tsang <tony@uniongate.com.hk>
Fri, 5 Dec 2014 02:53:37 +0000 (10:53 +0800)
public/ng/css/gogs.css
public/ng/less/gogs/repository.less
templates/repo/diff.tmpl

index dad84583d701fb7869af1e410d60d6d29e5b4f1e..63cbd5b2734d95a9acfe0643e6145e6e42057e5a 100644 (file)
@@ -1510,6 +1510,9 @@ The register and sign-in page style
 .commit-list .message span {
   max-width: 500px;
 }
+.commit-message {
+  white-space: pre-wrap;
+}
 .diff-head-box {
   margin-top: 10px;
 }
index 4eef314b509d88770f96b606b72af84a812c0ac5..4b7301be5d8343a08e329b4091dfc223bb6fadb9 100644 (file)
         }
     }
 }
+
+.commit-message {
+       white-space: pre-wrap;
+}
+
 .diff-head-box {
     margin-top: 10px;
     .panel-body {
index 8e6b1b07963cfdeef8e8d4de3c619edd9a9b25e1..61164c0de0c653a7ed760956a9525dcb082602c1 100644 (file)
@@ -17,7 +17,7 @@
         <div class="panel panel-info panel-radius diff-head-box">
             <div class="panel-header">
                 <a class="pull-right btn btn-blue btn-header btn-medium btn-radius" rel="nofollow" href="{{.SourcePath}}">{{.i18n.Tr "repo.diff.browse_source"}}</a>
-                <h4>{{.Commit.Message}}</h4>
+                <h4 class="commit-message">{{.Commit.Message}}</h4>
             </div>
             <div class="panel-body">
                 <span class="pull-right">