Commit 9b3d97f0 authored by Dheeraj Joshi's avatar Dheeraj Joshi

Fix styling issues for mermaid diagrams

This fixes styling issue for sandboxed mermaid
diagram by setting full width for iframe.
parent b48e79a9
......@@ -117,9 +117,9 @@ function renderMermaidEl(el, source) {
if (event.origin !== 'null' || event.source !== iframeEl.contentWindow) {
return;
}
const { h, w } = event.data;
iframeEl.width = w;
iframeEl.height = h;
const { h } = event.data;
iframeEl.width = '100%';
iframeEl.height = `${h + 10}px`;
},
false,
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment