Skip to content

Commit 4ccb2dc

Browse files
authored
custom modals -- allow other CSS values
1 parent beaa8fa commit 4ccb2dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/blocks.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ class Blocks extends React.Component {
647647
const modal = document.querySelector(`div[class="ReactModalPortal"]`);
648648
if (modal) {
649649
const inner = modal.firstChild.firstChild;
650-
inner.style.width = `${scale.width}px`;
651-
inner.style.height = `${scale.height}px`;
650+
inner.style.width = typeof scale.width === 'number' ? `${scale.width}px` : scale.width;
651+
inner.style.height = typeof scale.height === 'number' ? `${scale.height}px` : scale.height;
652652
return inner.querySelector(`div[class*="prompt_body_"] div`);
653653
}
654654
}

0 commit comments

Comments
 (0)