mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fixed: width of notes left of and right of
This commit is contained in:
parent
18254392ab
commit
809ba2b392
@ -615,7 +615,7 @@ export const draw = function(text, id) {
|
|||||||
noteWidth = shouldWrap
|
noteWidth = shouldWrap
|
||||||
? conf.width
|
? conf.width
|
||||||
: Math.max(
|
: Math.max(
|
||||||
actors[msg.from].width / 2 + actors[msg.to].width / 2 - conf.actorMargin,
|
actors[msg.from].width / 2 + actors[msg.to].width / 2,
|
||||||
textWidth + 2 * conf.noteMargin
|
textWidth + 2 * conf.noteMargin
|
||||||
);
|
);
|
||||||
if (shouldWrap) {
|
if (shouldWrap) {
|
||||||
@ -636,7 +636,7 @@ export const draw = function(text, id) {
|
|||||||
noteWidth = shouldWrap
|
noteWidth = shouldWrap
|
||||||
? conf.width
|
? conf.width
|
||||||
: Math.max(
|
: Math.max(
|
||||||
actors[msg.from].width / 2 + actors[msg.to].width / 2 - conf.actorMargin,
|
actors[msg.from].width / 2 + actors[msg.to].width / 2,
|
||||||
textWidth + 2 * conf.noteMargin
|
textWidth + 2 * conf.noteMargin
|
||||||
);
|
);
|
||||||
if (shouldWrap) {
|
if (shouldWrap) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user