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:
parent
2530ecfc86
commit
874c1e3e82
@ -18,7 +18,7 @@ function mermaidInit() {
|
||||
// Resetting elements size - see mermaid.ts
|
||||
const elements = document.getElementsByClassName('mermaid');
|
||||
for (const element of elements) {
|
||||
element.style.width = 'fit-content';
|
||||
element.style.width = '100%';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ function mermaidInit() {
|
||||
console.error('Mermaid error', error);
|
||||
}
|
||||
|
||||
// Resetting elements size - see mermaid.ts
|
||||
const elements = document.getElementsByClassName('mermaid');
|
||||
for (const element of elements) {
|
||||
element.style.width = '100%';
|
||||
|
Loading…
Reference in New Issue
Block a user