We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beaa8fa commit 4ccb2dcCopy full SHA for 4ccb2dc
src/containers/blocks.jsx
@@ -647,8 +647,8 @@ class Blocks extends React.Component {
647
const modal = document.querySelector(`div[class="ReactModalPortal"]`);
648
if (modal) {
649
const inner = modal.firstChild.firstChild;
650
- inner.style.width = `${scale.width}px`;
651
- inner.style.height = `${scale.height}px`;
+ inner.style.width = typeof scale.width === 'number' ? `${scale.width}px` : scale.width;
+ inner.style.height = typeof scale.height === 'number' ? `${scale.height}px` : scale.height;
652
return inner.querySelector(`div[class*="prompt_body_"] div`);
653
}
654
0 commit comments