mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-01 14:46:41 +02:00
prevent title from overlapping with box top border in Safari
This commit is contained in:
@@ -524,7 +524,7 @@ export const drawBox = function (elem, box, conf) {
|
|||||||
box.name,
|
box.name,
|
||||||
g,
|
g,
|
||||||
box.x,
|
box.x,
|
||||||
box.y + (box.textMaxHeight || 0) / 2,
|
box.y + conf.boxTextMargin + (box.textMaxHeight || 0) / 2,
|
||||||
box.width,
|
box.width,
|
||||||
0,
|
0,
|
||||||
{ class: 'text' },
|
{ class: 'text' },
|
||||||
|
Reference in New Issue
Block a user