mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Merge branch 'feature/1483_long_messages' of https://github.com/mermaid-js/mermaid into develop
This commit is contained in:
commit
710b88efae
@ -21,12 +21,10 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>info below</h1>
|
<h1>info below</h1>
|
||||||
<div class="mermaid" style="width: 50%; height: 20%;">
|
<div class="mermaid" style="width: 50%; height: 20%;">
|
||||||
graph TD
|
sequenceDiagram
|
||||||
A[Christmas] -->|Get money| B(Go shopping)
|
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
|
||||||
B --> C{Let me think}
|
Bob->>Alice: I'm short though
|
||||||
C -->|One| D[Laptop]
|
|
||||||
C -->|Two| E[iPhone]
|
|
||||||
C -->|Three| F[fa:fa-car Car]
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid2" style="width: 50%; height: 20%;">
|
<div class="mermaid2" style="width: 50%; height: 20%;">
|
||||||
flowchart TB
|
flowchart TB
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
window.$docsify = {
|
window.$docsify = {
|
||||||
search: 'auto',
|
search: 'auto',
|
||||||
name: 'mermaid',
|
name: 'mermaid',
|
||||||
repo: 'https://github.com/knsv/mermaid',
|
repo: 'https://github.com/mermaid-js/mermaid',
|
||||||
loadSidebar: true,
|
loadSidebar: true,
|
||||||
mergeNavbar: true,
|
mergeNavbar: true,
|
||||||
maxLevel: 4,
|
maxLevel: 4,
|
||||||
|
@ -827,7 +827,8 @@ export const draw = function(text, id) {
|
|||||||
if (conf.useMaxWidth) {
|
if (conf.useMaxWidth) {
|
||||||
diagram.attr('height', '100%');
|
diagram.attr('height', '100%');
|
||||||
diagram.attr('width', '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 {
|
} else {
|
||||||
diagram.attr('height', height);
|
diagram.attr('height', height);
|
||||||
diagram.attr('width', width);
|
diagram.attr('width', width);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user