forked from NYANDEV/forgejo
manual backport of #25988 to v1.20 - Tell the renderer to use the `document` mode, so it's consistent with other renderers. - Use the same padding as `.file-view.markup`, so it's consistent with other containers that contain markup rendering. - Resolves https://codeberg.org/forgejo/forgejo/issues/833 Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
This commit is contained in:
parent
0f5e07f538
commit
f155cf60d3
2 changed files with 2 additions and 1 deletions
|
@ -115,6 +115,7 @@ func Profile(ctx *context.Context) {
|
||||||
profileContent, err := markdown.RenderString(&markup.RenderContext{
|
profileContent, err := markdown.RenderString(&markup.RenderContext{
|
||||||
Ctx: ctx,
|
Ctx: ctx,
|
||||||
GitRepo: gitRepo,
|
GitRepo: gitRepo,
|
||||||
|
Metas: map[string]string{"mode": "document"},
|
||||||
}, bytes)
|
}, bytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ServerError("RenderString", err)
|
ctx.ServerError("RenderString", err)
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#readme_profile {
|
#readme_profile {
|
||||||
padding: 10px;
|
padding: 1em 2em;
|
||||||
border-radius: 0.28571429rem;
|
border-radius: 0.28571429rem;
|
||||||
background: var(--color-card);
|
background: var(--color-card);
|
||||||
border: 1px solid var(--color-secondary);
|
border: 1px solid var(--color-secondary);
|
||||||
|
|
Loading…
Reference in a new issue