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 gantt graph in small screen #257

Open
bosconb opened this issue Mar 28, 2019 · 2 comments
Open

mermaid gantt graph in small screen #257

bosconb opened this issue Mar 28, 2019 · 2 comments

Comments

@bosconb
Copy link

bosconb commented Mar 28, 2019

when theme embed a mermaid gantt graph, the abscissa scale shows a terrible result in mobile (iphone 6/7 plus screen),any idea?

 mermaid gantt graph in small screen

@matalo33
Copy link
Contributor

matalo33 commented Apr 1, 2019

Agreed, it does look quite bad! Is this an issue with mermaid or the theme implementation of mermaid?

@McShelby
Copy link

Mermaid generates a width=100% for certain diagram types - e.g the gantt diagram. On a narrow website this may cause the observed distortion.

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.

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

No branches or pull requests

3 participants