Commit 65c4fdf7 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'djadmin-fix-mermaid-width-styling-issues' into 'master'

Fix styling issues related to sandboxed mermaid charts

See merge request gitlab-org/gitlab!78165
parents effe73e5 5aa55320
...@@ -91,6 +91,7 @@ function renderMermaidEl(el, source) { ...@@ -91,6 +91,7 @@ function renderMermaidEl(el, source) {
sandbox: 'allow-scripts', sandbox: 'allow-scripts',
frameBorder: 0, frameBorder: 0,
scrolling: 'no', scrolling: 'no',
width: '100%',
}); });
// Add the original source into the DOM // Add the original source into the DOM
...@@ -119,7 +120,6 @@ function renderMermaidEl(el, source) { ...@@ -119,7 +120,6 @@ function renderMermaidEl(el, source) {
return; return;
} }
const { h } = event.data; const { h } = event.data;
iframeEl.width = '100%';
iframeEl.height = `${h + BUFFER_IFRAME_HEIGHT}px`; iframeEl.height = `${h + BUFFER_IFRAME_HEIGHT}px`;
}, },
false, 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