diff --git a/cypress/platform/current.html b/cypress/platform/current.html index fa0477414..c85448301 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: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 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 6be5456db..7f4c5f1ad 100644 --- a/src/diagrams/sequence/sequenceRenderer.js +++ b/src/diagrams/sequence/sequenceRenderer.js @@ -827,7 +827,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);