mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
68.69k stars 6.07k forks source link

Mermaid Chart - Code Editor Constantly Reduces Upwards #5505

Closed chrisdunlopnz closed 2 weeks ago

chrisdunlopnz commented 1 month ago

Description

The code editor just reduces in size. This happens no matter what device I am on, nor what chart and makes my new mermaid chart subscription hard to use.

Attached video

Steps to reproduce

Open mermaidchart Open a new diagram The code editor will eventually be minimised by the upwards scrolling.

Screenshots

https://github.com/mermaid-js/mermaid/assets/5751058/58cac60d-6f72-4ec4-9e56-0c54a745e66c

Code Sample

No response

Setup

Mermaid Chart Google Chrome

Suggested Solutions

No response

Additional Context

No response

sidharthv96 commented 1 month ago

Thank you so much for reporting. I'm surprised to see this happening now, as was fixed about a year back. I guess there are edge cases we missed. I'm unable to reproduce the issue locally, I'll loop @dav1tj to see if he can break it.

@chrisdunlopnz Can you please provide the OS and Browser versions?

Future reference: https://github.com/Mermaid-Chart/issue-tracker is the right place for reporting Mermaid Chart issues

sidharthv96 commented 1 month ago

I'm unable to reproduce in Chrome Version 124.0.6367.119 (Official Build) (arm64) on macOS Ventura 13.6.6 (22G630) both in production and development.

https://github.com/mermaid-js/mermaid/assets/10703445/e211d042-7114-4f2e-93c7-2fc5e880f453

@chrisdunlopnz can you please help isolate the issue?

Here are some steps

  1. Try in incognito
  2. Try in a different browser (Firefox/Safari/Brave).
  3. Try after starting chrome without extensions. Guide
sidharthv96 commented 1 month ago

I have added some fixes which might in theory help with the issue (I cannot verify as I'm unable to reproduce the issue). We're also adding some extra debug statements so we can get additional information from your machine (will add info on how to send the info to us after release).

Both these should be included in today's release. Will update here once it's live.

chrisdunlopnz commented 1 month ago

Hi apologies for the late reply, but it has been fixed on all versions I have tested, thanks so much for the help