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

pull/2894/head
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
1 changed files with 1 additions and 1 deletions

View File

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