diff options
author | silverwind <me@silverwind.io> | 2020-12-06 04:05:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 11:05:22 +0800 |
commit | 173e512700f13cb91141c357fd066d9cbc7094bb (patch) | |
tree | 47773cf0424f6f1cb5a4155b5d6f174dc204da71 /web_src/less | |
parent | 9c71c6c4a5823f337b617b8815a071d00576d012 (diff) | |
download | gitea-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.less | 3 |
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 */ |