2026-10-17 10:12:56 +08:00
|
|
|
diff --git a/dist/chunks/mermaid.core/chunk-AQDTSKZB.mjs b/dist/chunks/mermaid.core/chunk-AQDTSKZB.mjs
|
|
|
|
|
index 7e7ab3bcfcca70578d3d14d0367f3a2c167fb767..fd1e891c28c7a6daf332f27ec0716a5704882d90 100644
|
|
|
|
|
--- a/dist/chunks/mermaid.core/chunk-AQDTSKZB.mjs
|
|
|
|
|
+++ b/dist/chunks/mermaid.core/chunk-AQDTSKZB.mjs
|
2026-10-12 11:27:37 +08:00
|
|
|
@@ -685,7 +685,7 @@ async function addHtmlSpan(element, node, width, classes, addBackground = false,
|
|
|
|
|
div.attr("class", "labelBkg");
|
|
|
|
|
}
|
|
|
|
|
const bbox = await fastdom_default2.measure(() => div.node().getBoundingClientRect());
|
|
|
|
|
- if (bbox.width === width) {
|
|
|
|
|
+ if (bbox.width >= width - 1) {
|
|
|
|
|
div.style("display", "table");
|
|
|
|
|
div.style("white-space", "break-spaces");
|
|
|
|
|
div.style("width", width + "px");
|