]> source.dussan.org Git - gitea.git/commitdiff
Fix mermaid chart size (#13863)
authorsilverwind <me@silverwind.io>
Sun, 6 Dec 2020 03:05:22 +0000 (04:05 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Dec 2020 03:05:22 +0000 (11:05 +0800)
* Fix mermaid chart size

Seems like one of the recent updates to the module unexpectedly shrunk
these charts, bring them back up to full width.

* don't stretch to full width

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
web_src/less/markdown/mermaid.less

index 4fc1258f03a2bbd900cc4f6886d69fdea81fcbb0..f68b577decf1330702a5171c9983da21478d9d10 100644 (file)
@@ -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 */