-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Timeline LongText wrap #6182
Comments
Bug confirmation : Timeline Text Overflow Issue Hi @0xshellming Steps to Reproduce
Here is a screenshot of the issue as observed in my testing: I also tested the timeline in the demo Key Observations • In the first example the entries for 1991 and 2010 experience inconsistent text overflow issues, with the text for 1991 spilling above the block and for 2010 underfilling the block Environment Details Additional Observations Thank you for reporting this issue! I hope the additional details provided here help the maintainers reproduce and categorize it further. Let me know if any other information or testing is required! |
Hi @0xshellming I've investigated and fixed the issue where Timeline Diagram text did not automatically wrap when the text is too long. Fix Summary: Updated the wrap function in svgDrawer.js to handle long text properly. Results: Modified Files: Resulting Fix: Here’s the updated Timeline Diagram after applying the fix: Mermaid Version: 11.4.1 I have submitted a PR to address this: #6258. Let me know if you have any feedback or suggestions. Thanks! 😊 |
Great! thank you for solving this problem. |
Description
Timeline text will display out of the color block when it is too long
Steps to reproduce
input long text timeline
Screenshots
Code Sample
Setup
Suggested Solutions
Automatically wrap lines and display inside the color block
Additional Context
No response
The text was updated successfully, but these errors were encountered: