1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Fixing mermaid script

This commit is contained in:
Laurent Cozic 2020-09-02 22:51:16 +01:00
parent 2530ecfc86
commit 874c1e3e82
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function mermaidInit() {
// Resetting elements size - see mermaid.ts // Resetting elements size - see mermaid.ts
const elements = document.getElementsByClassName('mermaid'); const elements = document.getElementsByClassName('mermaid');
for (const element of elements) { for (const element of elements) {
element.style.width = 'fit-content'; element.style.width = '100%';
} }
} }
} }

View File

@ -15,6 +15,7 @@ function mermaidInit() {
console.error('Mermaid error', error); console.error('Mermaid error', error);
} }
// Resetting elements size - see mermaid.ts
const elements = document.getElementsByClassName('mermaid'); const elements = document.getElementsByClassName('mermaid');
for (const element of elements) { for (const element of elements) {
element.style.width = '100%'; element.style.width = '100%';