mirror of
https://github.com/gogs/gogs.git
synced 2025-05-24 16:30:51 +00:00
templates: fix line wrap for very long commit message
This commit is contained in:
parent
7d9f408d3a
commit
53d30ccde9
2
gogs.go
2
gogs.go
@ -17,7 +17,7 @@ import (
|
|||||||
"gogs.io/gogs/internal/setting"
|
"gogs.io/gogs/internal/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Version = "0.11.96.1105"
|
const Version = "0.11.96.1107"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
setting.AppVer = Version
|
setting.AppVer = Version
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/json-iterator/go"
|
jsoniter "github.com/json-iterator/go"
|
||||||
"github.com/microcosm-cc/bluemonday"
|
"github.com/microcosm-cc/bluemonday"
|
||||||
"golang.org/x/net/html/charset"
|
"golang.org/x/net/html/charset"
|
||||||
"golang.org/x/text/transform"
|
"golang.org/x/text/transform"
|
||||||
|
@ -2066,6 +2066,9 @@ footer .ui.language .menu {
|
|||||||
.repository .filter.dropdown .menu {
|
.repository .filter.dropdown .menu {
|
||||||
margin-top: 1px!important;
|
margin-top: 1px!important;
|
||||||
}
|
}
|
||||||
|
.repository.diff .commit-message pre {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
.repository.commits .header .ui.right .search input {
|
.repository.commits .header .ui.right .search input {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
@ -950,6 +950,12 @@
|
|||||||
margin-top: 1px!important;
|
margin-top: 1px!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.diff {
|
||||||
|
.commit-message pre {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.commits {
|
&.commits {
|
||||||
.header {
|
.header {
|
||||||
.ui.right {
|
.ui.right {
|
||||||
|
@ -1 +1 @@
|
|||||||
0.11.96.1105
|
0.11.96.1107
|
||||||
|
@ -9,8 +9,10 @@
|
|||||||
<a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}">
|
<a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}">
|
||||||
{{.i18n.Tr "repo.diff.browse_source"}}
|
{{.i18n.Tr "repo.diff.browse_source"}}
|
||||||
</a>
|
</a>
|
||||||
|
<div class="commit-message">
|
||||||
{{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas | Str2HTML}}
|
{{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas | Str2HTML}}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="ui attached info segment">
|
<div class="ui attached info segment">
|
||||||
{{if .Author}}
|
{{if .Author}}
|
||||||
<img class="ui avatar image" src="{{.Author.RelAvatarLink}}" />
|
<img class="ui avatar image" src="{{.Author.RelAvatarLink}}" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user