diff options
author | silverwind | 2021-03-21 18:03:52 +0100 |
---|---|---|
committer | GitHub | 2021-03-21 18:03:52 +0100 |
commit | 2f09e5775f1e9a7388cde03c70edd1957f619f1b (patch) | |
tree | a2bedac8b4b2d912ce9a8968d0ab6bcbfd331fa1 | |
parent | b0819efaeae1fb03a199d936af4cc475e71fcaf7 (diff) |
Fix markdown rendering in milestone content (#15056) (#15092)
- Add missing markdown class for rendered markdown.
- Increase font size of milestone name in list.
Fixes: https://github.com/go-gitea/gitea/issues/15046
-rw-r--r-- | templates/repo/issue/milestone_issues.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 4 | ||||
-rw-r--r-- | web_src/less/_repository.less | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 28b11ad6d..e89131f15 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -4,8 +4,8 @@ <div class="ui container"> <div class="ui three column stackable grid"> <div class="column"> - <h3>{{.Milestone.Name}}</h3> - <div class="content"> + <h1>{{.Milestone.Name}}</h1> + <div class="markdown content"> {{.Milestone.RenderedContent|Str2html}} </div> </div> diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index bb42a9c73..94c0600ef 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -43,7 +43,7 @@ <div class="milestone list"> {{range .Milestones}} <li class="item"> - {{svg "octicon-milestone"}} <a href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a> + {{svg "octicon-milestone" 16 "mr-2"}} <a href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a> <div class="ui right green progress" data-percent="{{.Completeness}}"> <div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}> <div class="progress"></div> @@ -80,7 +80,7 @@ </div> {{end}} {{if .Content}} - <div class="content"> + <div class="markdown content"> {{.RenderedContent|Str2html}} </div> {{end}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 09b416c4a..5e6081a63 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -1320,6 +1320,7 @@ padding-top: 5px; padding-right: 10px; color: #000000; + font-size: 1.5rem; &:hover { color: #4078c0; |