summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-06 04:13:31 +0100
committerGitHub <noreply@github.com>2020-12-05 22:13:31 -0500
commit584d01cf2c3e1f5946fca03e7aa9db8d6508328e (patch)
treeddd98cb5b503e20f55ae99d514b7c711306c42a5
parent798fdeae4545c1558a82d95d34165cc274080ab8 (diff)
downloadgitea-584d01cf2c3e1f5946fca03e7aa9db8d6508328e.tar.gz
gitea-584d01cf2c3e1f5946fca03e7aa9db8d6508328e.zip
Fix mermaid chart size (#13865)
-rw-r--r--web_src/less/markdown/mermaid.less3
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/less/markdown/mermaid.less b/web_src/less/markdown/mermaid.less
index 4fc1258f03..f68b577dec 100644
--- a/web_src/less/markdown/mermaid.less
+++ b/web_src/less/markdown/mermaid.less
@@ -3,7 +3,8 @@
justify-content: center;
align-items: center;
padding: 1rem;
- margin: 1rem 0;
+ margin: 1rem auto;
+ height: auto;
}
/* mermaid's errorRenderer seems to unavoidably spew stuff into <body>, hide it */