File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -640,12 +640,16 @@ class Blocks extends React.Component {
640
640
641
641
this . setState ( { prompt : {
642
642
isCustom : true ,
643
- title,
644
- width : Number ( scale . width ) , height : Number ( scale . height ) ,
645
- enterInfo, closeInfo
643
+ title, enterInfo, closeInfo
646
644
} } ) ;
647
645
648
- return document . querySelector ( `div[class="ReactModalPortal"] div[class*="prompt_body_"]` ) ;
646
+ const modal = document . querySelector ( `div[class="ReactModalPortal"]` ) ;
647
+ if ( modal ) {
648
+ const inner = modal . firstChild . firstChild ;
649
+ inner . style . width = `${ scale . width } px` ;
650
+ inner . style . height = `${ scale . height } px` ;
651
+ return inner . querySelector ( `div[class*="prompt_body_"] div` ) ;
652
+ }
649
653
}
650
654
handleConnectionModalStart ( extensionId ) {
651
655
this . props . onOpenConnectionModal ( extensionId ) ;
@@ -734,8 +738,6 @@ class Blocks extends React.Component {
734
738
{ this . state . prompt ? this . state . prompt . isCustom ? (
735
739
< Prompt
736
740
isCustom = { this . state . prompt . isCustom }
737
- width = { this . state . prompt . width }
738
- height = { this . state . prompt . height }
739
741
title = { this . state . prompt . title }
740
742
enterTitle = { this . state . prompt . enterInfo . name }
741
743
closeTitle = { this . state . prompt . closeInfo . name }
You can’t perform that action at this time.
0 commit comments