mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
fix: Potential fix for mis-sized mermaid diagrams (#12354)
closes #11874
This commit is contained in:
@@ -168,7 +168,8 @@ class MermaidRenderer {
|
||||
renderElement.style.visibility = "hidden";
|
||||
renderElement.style.top = "0";
|
||||
renderElement.style.left = "0";
|
||||
renderElement.style.width = "100%";
|
||||
const width = this.editor.view?.dom.clientWidth ?? window.innerWidth;
|
||||
renderElement.style.width = `${width}px`;
|
||||
renderElement.style.zIndex = "-1";
|
||||
document.body.appendChild(renderElement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user