mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-14 17:19:42 +00:00
de56ee21cf
Mermaid wraps an HTML label only when its measured width equals the wrapping width exactly. At some browser zoom levels (e.g. 90% and 175% in Chrome) getBoundingClientRect returns 200.00001 instead of 200, so long labels stay on one line and are clipped by the foreignObject. Patch Mermaid to compare the rounded width.