mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Merge pull request #1512 from cmmoran/feature/1483_long_messages
math is hard sometimes?
This commit is contained in:
@@ -970,7 +970,7 @@ const buildMessageModel = function(msg, actors) {
|
|||||||
msg.message,
|
msg.message,
|
||||||
Math.max(
|
Math.max(
|
||||||
msgDims.width + 2 * conf.wrapPadding,
|
msgDims.width + 2 * conf.wrapPadding,
|
||||||
boundedWidth - 2 * conf.wrapPadding,
|
boundedWidth + 2 * conf.wrapPadding,
|
||||||
conf.width
|
conf.width
|
||||||
),
|
),
|
||||||
conf.messageFont()
|
conf.messageFont()
|
||||||
@@ -979,7 +979,7 @@ const buildMessageModel = function(msg, actors) {
|
|||||||
return {
|
return {
|
||||||
width: Math.max(
|
width: Math.max(
|
||||||
msgDims.width + 2 * conf.wrapPadding,
|
msgDims.width + 2 * conf.wrapPadding,
|
||||||
boundedWidth - 2 * conf.wrapPadding,
|
boundedWidth + 2 * conf.wrapPadding,
|
||||||
conf.width
|
conf.width
|
||||||
),
|
),
|
||||||
height: 0,
|
height: 0,
|
||||||
|
Reference in New Issue
Block a user