Note size is not scaled to be at least as long as the text length (font dependent)
See original GitHub issueDescribe the bug Text sometimes overflows the boundaries of the Note box behind it.
To Reproduce Steps to reproduce the behavior:
sequenceDiagram
accTitle: playback
accDescr: Sequence diagram
participant PE
participant ESX Player
Note over PE, ESX Player: Video/audio config can change during play
opt New video frames will be a different configuration
PE->>ESX Player: ConfigureVideo()
end
opt New audio frames will be a different configuration
PE->>ESX Player: ConfigureAudio()
end
Note right of ESX Player: Frames requested & appended in parallel
loop Play
opt If buffer reaches maximum while playing
ESX Player->>PE: OnEnoughFrames()
end
activate ESX Player
ESX Player->>ESX Player: Play buffered frames
ESX Player->>PE: CurrentTimeUpdated.Emit()
deactivate ESX Player
end
Expected behavior A Note should adjust it’s width to at least the width of the text give to it
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
mmdc
ran in Docker image ‘pandoc/latex:2.18-ubuntu’ with custom entrypoint script that installs npm install @mermaid/mermaid-cli
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Format text in the Notes pane - Microsoft Support
On the Home tab, in the Font group, choose the font size you want. By default, the font size is 12 points. Change...
Read more >css - Font scaling based on width of container - Stack Overflow
This would put the text size at the same size it would have been had the "width" of the original 50% container been...
Read more >font-size | CSS-Tricks
The font-size property specifies the size, or height, of the font. font-size affects not only the font to which it is applied, but...
Read more >Resize text layers – Figma Help Center
We recommend changing the size of a text layer by adjusting the Font size to ensure whole numbers. Select the Scale tool in...
Read more >How do I change the font size for text in my figure? - MathWorks
I'm using "set(gca,'fontsize', 18);" in a function to change fonts in a figure. My code does not throw an error, but it also...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @MindaugasLaganeckas ! Yes adding the monospace directive at the top with
%%{init: {"fontFamily": "monospace"}}%%
does trigger overflow of boxes drawn behind (at least for the first label) for some reason the second label auto-adjusts (as it should). Will file upstream.It might also be worth having a try in https://mermaid.live, e.g. (replacing `“fontFamily” with your font) https://mermaid.live/edit#pako:eNqtk01v2zAMhv8KISDFBmTt3YcCQ-sCO6wNkG7YwRdGom1i-vBkKVkQ5L9PstLFWdDbdLEt6n35kBYPQjpFohKLxYEthwoOjWidDU9oWO8bUUEjjLNuHFBSI47HxaKxI_2KZCU9MnYeTWMhLZTylYOmCmDQuN-g_Pk38Eij9BWsTzpQc-GAPrDkAW2AVX29V69_wCo5ki-xZxcI3JZ8Or2cRSv4zorcHUbFDqSzLXcg0YLs0XYpafRsuwmuGLkhwDPtYJtl0CYgGmHHWsOGABNk25KnRFC8osfAzhZtXqv60_39PP_D6RxNIB8-lqNk1WW-Avg_833Ojlf5pkZ57voArr1o1FPJ7fP_GAMpuAEchiRMr2xz91Fr0sVGOzdMyjNJruRLC5uYiZMNyj7ZGfzNJhrY9axp6nPq91mU1xkilbKqK3ixtXWx6wvRWwkXZZQ7FHiLqZx_L8OV6bzM_DxBpsJKw9-RZZaH6HP7X9nQt0GlbOq2NhzmUIreJZl4xVIY8gZZpZk6lEBjj2k7To614uC8qIKPtBQYg1vvrXz7LmdOUyWqFvWYdmnSfC1zOo3r8Q9btzcO
If it is happening there too, then it’s an issue with the upstream https://github.com/mermaid-js/mermaid project.