summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-03-20 10:36:52 +0100
committerGitHub <noreply@github.com>2021-03-20 10:36:52 +0100
commitd05539eb3e49542ba99af8f4add677f410246aa7 (patch)
tree7b12c83ea12aebd22507774f8b9db9789320f840
parentbb5eb849f2ae2316be8f6f1da96cf3a655733d22 (diff)
downloadgitea-d05539eb3e49542ba99af8f4add677f410246aa7.tar.gz
gitea-d05539eb3e49542ba99af8f4add677f410246aa7.zip
Fix markdown rendering in milestone content (#15056)
- 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.tmpl4
-rw-r--r--templates/repo/issue/milestones.tmpl4
-rw-r--r--web_src/less/_repository.less1
3 files changed, 5 insertions, 4 deletions
diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl
index 4f4a91b211..f977074fea 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 4d16b0d014..89ae813d45 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 cf510f6f0f..9f40c0c618 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -1167,6 +1167,7 @@
> a {
padding-top: 5px;
padding-right: 10px;
+ font-size: 1.5rem;
color: var(--color-text);
&:hover {