-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Timeline Title Does Not Wrap Correctly #6393
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
Comments
To resolve this issue, I replaced the element with an SVG element, allowing HTML/CSS to properly render and style the title. Steps Taken
2.Introduced for Wrapping Replaced the element with to enable proper wrapping using HTML/CSS.
Used a long title example to ensure proper wrapping and confirm that the timeline diagram remains unaffected. Mermaid Version: 11.4.1 |
Great work on addressing the title wrapping issue! The fix makes a big improvement in readability. I have a small suggestion to further enhance the title styling for better emphasis. Currently, the title blends in with other text, making it less prominent in the diagram. To improve readability and presentation, the title could:
This small tweak would make titles stand out better. |
Hi @nourhenta 👋 Thanks for raising this issue! I’ve submitted a fix #6405 that ensures long timeline titles are properly wrapped using an SVG containing a styled XHTML |
Description
The timeline title in Mermaid does not wrap properly when it is too long. Instead of breaking into multiple lines, it remains on a single line, causing layout issues such as:
Steps to reproduce
Screenshots
Code Sample
Setup
Environment Details
• Mermaid Version:11.4.1
• Browser Tested:
Microsoft Edge (Version: 132.0.2957.115)
• Operating System: (Windows 11)
The text was updated successfully, but these errors were encountered: