From dbbfbb2855221cd649ed9852d3b10b7a0b1db29c Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Fri, 19 Jun 2020 08:40:54 +0200 Subject: [PATCH 1/3] Updates after review --- docs/index.html | 2 +- src/diagrams/sequence/sequenceRenderer.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 4cb7cd430..5b2e3913b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -34,7 +34,7 @@ window.$docsify = { search: 'auto', name: 'mermaid', - repo: 'https://github.com/knsv/mermaid', + repo: 'https://github.com/mermaid-js/mermaid', loadSidebar: true, mergeNavbar: true, maxLevel: 4, diff --git a/src/diagrams/sequence/sequenceRenderer.js b/src/diagrams/sequence/sequenceRenderer.js index fa882e1f5..5360f7a03 100644 --- a/src/diagrams/sequence/sequenceRenderer.js +++ b/src/diagrams/sequence/sequenceRenderer.js @@ -837,7 +837,8 @@ export const draw = function(text, id) { if (conf.useMaxWidth) { diagram.attr('height', '100%'); diagram.attr('width', '100%'); - diagram.attr('style', 'max-width:100%;'); + diagram.attr('style', 'max-width:' + width + 'px;'); + // diagram.attr('style', 'max-width:100%;'); } else { diagram.attr('height', height); diagram.attr('width', width); From 038d70a40b36428313b07eaf1686824087e6e92c Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Fri, 19 Jun 2020 10:57:16 +0200 Subject: [PATCH 2/3] Diagram showing sequence diagram with long message text --- cypress/platform/current.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cypress/platform/current.html b/cypress/platform/current.html index fa0477414..526e6ed38 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -21,12 +21,10 @@

info below

- graph TD - A[Christmas] -->|Get money| B(Go shopping) - B --> C{Let me think} - C -->|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] +sequenceDiagram + Alice->>Bob:wrap:Extremely utterly long line of longness which had preivously overflown the actor box as it is much longer than what it should be + Bob->>Alice: I'm short though +
flowchart TB From feb9ffadec1ff51559fe8008f00fa8f792f2fab4 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Fri, 19 Jun 2020 10:57:16 +0200 Subject: [PATCH 3/3] Diagram showing sequence diagram with cut long message text --- cypress/platform/current.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/platform/current.html b/cypress/platform/current.html index 526e6ed38..c85448301 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -22,7 +22,7 @@

info below

sequenceDiagram - Alice->>Bob:wrap:Extremely utterly long line of longness which had preivously overflown the actor box as it is much longer than what it should be + Alice->>Bob:Extremely utterly long line of longness which had preivously overflown the actor box as it is much longer than what it should be Bob->>Alice: I'm short though