aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-06 04:05:22 +0100
committerGitHub <noreply@github.com>2020-12-06 11:05:22 +0800
commit173e512700f13cb91141c357fd066d9cbc7094bb (patch)
tree47773cf0424f6f1cb5a4155b5d6f174dc204da71 /web_src/less
parent9c71c6c4a5823f337b617b8815a071d00576d012 (diff)
downloadgitea-173e512700f13cb91141c357fd066d9cbc7094bb.tar.gz
gitea-173e512700f13cb91141c357fd066d9cbc7094bb.zip
Fix mermaid chart size (#13863)
* 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>
Diffstat (limited to 'web_src/less')
-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 */