Boxes large enough to contain their text, with uniform margins all around.
Actual result
Boxes have uniform margins on top, bottom, and left side, but on the right side it’s like the box is “cut off” and the text spills out beyond the box. Like the right margin is negative, maybe?
Environment
Operating system: Windows 10
Obsidian version: 0.9.6
Additional information
Here’s how it looks in Obsidian:
For comparison, here’s how VS Code renders the same diagram:
Oh, that’s 0.9.7? I remembered reading that in the release notes, but I must’ve confused the version number and thought it happened in 0.9.6, because that version fixed a different Mermaid bug where the boxes’ bottom margin was huge. I’ll make a note to check again with 0.9.7. Thanks.
Good to know, and at least it works at 100% on the external display.
So, about scaling with CSS instead of Ctrl+-, is there a specific recommended method? Can I just set body { font-size }, or is there more to it than that? (I’m comfortable with CSS, so if there’s a known-good code snippet somewhere, just point me to it.)