So this issue remains, it was an error I created with a snippet.
As I intend to export my notes as PDF, I added the following css snippet.
div.mermaid svg {
width: 100%;
}
.markdown-source-view.is-live-preview div.mermaid svg {
width: 100%;
}
Without this, the mermaid frame would be clipped on the right.
With this, the clipping on the right is gone, but the whitespace above and below the graph is introduced.
Can anyone help with how to fix both issues?