Resize and align mermaid diagrams

This is an update on this request.

In theory, Mermaid supports customizing the size of the graph (and also the elements of the graphs) using “directives”.

https://mermaid-js.github.io/mermaid/diagrams-and-syntax-and-examples/directives.html

Unfortunately, the doc presents conflicting syntaxes. Their examples don’t work in their own live editor.
Probably the devs haven’t finished implementing this yet. We will wait until this thing is sorted out and well documented upstream.

Some users have attempted modifying the look of the graph using CSS directly.

3 Likes