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

Increasing the zoom value makes Mermaid diagram sizes yo-yo #1996

Open
gy-mate opened this issue Dec 30, 2024 · 0 comments
Open

Increasing the zoom value makes Mermaid diagram sizes yo-yo #1996

gy-mate opened this issue Dec 30, 2024 · 0 comments

Comments

@gy-mate
Copy link
Contributor

gy-mate commented Dec 30, 2024

Describe the bug

When using the zoom option with a slide that has a Mermaid diagram in it, the graph size only follows the gradually increasing zoom value to a certain point. From then on, the diagram size starts to decrease.

Minimal reproduction

Steps to reproduce the behavior:

  1. Run:
    git clone https://github.com/gy-mate/talks
    cd talks/2024-12-10_BME_FLOSS_assignment
    git checkout 8a11af1
    slidev
  2. Remove this line: https://github.com/gy-mate/talks/blob/8a11af18b216e5fbf66350ca1bf036f36c2c6b81/2024-12-10_BME_FLOSS_assignment/pages/Python.md?plain=1#L6
  3. Open http://localhost:3030/7
  4. The Mermaid diagram is quite big but it still doesn't fill the screen:
    Screenshot 2024-12-30 at 13 29 50
  5. Change 2.5 to 1 at https://github.com/gy-mate/talks/blob/8a11af18b216e5fbf66350ca1bf036f36c2c6b81/2024-12-10_BME_FLOSS_assignment/pages/Python.md?plain=1#L3
  6. The diagram size decreases:
    Screenshot 2024-12-30 at 13 28 56
  7. Change 1 back to 2.5
  8. Change 2.5 to 3
  9. The diagram size also decreases:
    Screenshot 2024-12-30 at 13 29 21

Environment

  • Slidev version: 0.51.0-beta.4 (global) and 0.50.0 (local)
  • Browser: Safari 18.2 and Google Chrome 131.0.6778.205
  • OS: macOS 15.2
@gy-mate gy-mate changed the title Increasing the zoom value makes Mermaid graph sizes yo-yo Increasing the zoom value makes Mermaid diagram sizes yo-yo Dec 30, 2024
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

1 participant