templates: fix line wrap for very long commit message

pull/5857/head
Unknwon 2019-11-07 11:18:21 -08:00
parent 7d9f408d3a
commit 53d30ccde9
No known key found for this signature in database
GPG Key ID: B43718D76E30A238
6 changed files with 24 additions and 13 deletions

View File

@ -17,7 +17,7 @@ import (
"gogs.io/gogs/internal/setting"
)
const Version = "0.11.96.1105"
const Version = "0.11.96.1107"
func init() {
setting.AppVer = Version

View File

@ -14,7 +14,7 @@ import (
"strings"
"time"
"github.com/json-iterator/go"
jsoniter "github.com/json-iterator/go"
"github.com/microcosm-cc/bluemonday"
"golang.org/x/net/html/charset"
"golang.org/x/text/transform"

View File

@ -2066,6 +2066,9 @@ footer .ui.language .menu {
.repository .filter.dropdown .menu {
margin-top: 1px!important;
}
.repository.diff .commit-message pre {
white-space: pre-wrap;
}
.repository.commits .header .ui.right .search input {
font-weight: normal;
padding: 5px 10px;

View File

@ -948,7 +948,13 @@
.filter.dropdown .menu {
margin-top: 1px!important;
}
}
&.diff {
.commit-message pre {
white-space: pre-wrap;
}
}
&.commits {
.header {

View File

@ -1 +1 @@
0.11.96.1105
0.11.96.1107

View File

@ -9,7 +9,9 @@
<a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}">
{{.i18n.Tr "repo.diff.browse_source"}}
</a>
{{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas | Str2HTML}}
<div class="commit-message">
{{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas | Str2HTML}}
</div>
</div>
<div class="ui attached info segment">
{{if .Author}}