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

mermaid: support pan & zoom for graphs #9

Closed
McShelby opened this issue Jul 2, 2021 · 1 comment
Closed

mermaid: support pan & zoom for graphs #9

McShelby opened this issue Jul 2, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@McShelby
Copy link
Owner

McShelby commented Jul 2, 2021

Mermaid generates a width=100% for certain diagram types - e.g the gantt diagram. On a narrow website this may cause a busy graph to be hard to read.

The mermaid docs expose this behaviour, too, as seen here.

Also related to this issue: If mermaid does not generate a width=100% the diagramm may overflow out of view if the browser window is too narrow - without generating scroll bars. This is clearly an issue of our CSS and also affects print output.

Nevertheless I don't have an idea how to fix this in a satisfying way for all users.

This is a copy of matcornic/hugo-theme-learn#257

@McShelby McShelby added the bug Something isn't working label Jul 2, 2021
@McShelby
Copy link
Owner Author

McShelby commented Jul 2, 2021

The good news is, that since upgrading our mermaid version in #7, every mermaid graph has a width=100%.

This leaves the problem how to handle big graphs on small screens.

Some kind of zoom mode?

@McShelby McShelby changed the title mermaid: graph may exeed screen limits mermaid: support pan & zoom for graphs Jul 2, 2021
@McShelby McShelby added this to the Next minor milestone Jul 2, 2021
@McShelby McShelby closed this as completed Jul 2, 2021
McShelby added a commit that referenced this issue Jul 2, 2021
@McShelby McShelby self-assigned this Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant