fix: Message width

This commit is contained in:
Sidharth Vinod
2024-01-27 15:34:53 +05:30
parent 52d276b010
commit 3b0c5c3e60

View File

@@ -1138,12 +1138,12 @@ async function getMaxMessageWidthPerActor(
// If this is the first actor, and the message is left of it, no need to calculate the margin
if (msg.placement === diagObj.db.PLACEMENT.LEFTOF && !actor.prevActor) {
return;
continue;
}
// If this is the last actor, and the message is right of it, no need to calculate the margin
if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF && !actor.nextActor) {
return;
continue;
}
const isNote = msg.placement !== undefined;