mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Fixed: width of notes left of and right of
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user