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

Desktop, Mobile: Fixes #3109: Fixed background color on large Mermaid graphs (#3111)

This commit is contained in:
Rahul Mohata 2020-05-09 20:51:01 +05:30 committed by GitHub
parent 0f8f7aeb14
commit 734f83470c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = '100%'; element.style.width = 'fit-content';
} }
} }
} }