Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big gap before / after diagram when scaling to fit editor's width #109

Closed
bcardiff opened this issue Jun 15, 2021 · 2 comments
Closed

Big gap before / after diagram when scaling to fit editor's width #109

bcardiff opened this issue Jun 15, 2021 · 2 comments

Comments

@bcardiff
Copy link

I noticed the preview has a fixed height for diagrams

3JgrvKPYyq

that seems good for small / medium diagrams, but when the content is wide the gap starts to be a problem (unless you have a ultra wide monitor 😅 )

wcwaG5q5fD

The scaling to fit editor's width is a nice feature. Maybe keeping a fixed height was on purpose, i don't know. Would it make sense to remove that gap and allow diagram's height to change as needed?


Thanks for this plugin! 💙

@bobatsar
Copy link

I have the same problem, seems to be already in mermaid not in this plugin.
mermaid-js/mermaid#1984

@bcardiff
Copy link
Author

Thanks! Closing then since is in mermaidjs and not in this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants