You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Fixing mermaid script
This commit is contained in:
@@ -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%';
|
||||
|
||||
Reference in New Issue
Block a user