File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -1594,13 +1594,16 @@ class Component {
1594
1594
modal . style . backgroundColor = 'rgba(0, 0, 0, .5)' ;
1595
1595
modal . style . zIndex = '100000' ;
1596
1596
modal . style . position = 'fixed' ;
1597
- modal . style . width = '100vw' ;
1598
- modal . style . height = '100vh' ;
1597
+ modal . style . top = '0px' ;
1598
+ modal . style . bottom = '0px' ;
1599
+ modal . style . left = '0px' ;
1600
+ modal . style . right = '0px' ;
1601
+ modal . style . display = 'flex' ;
1602
+ modal . style . flexDirection = 'column' ;
1599
1603
}
1600
1604
const iframe = document . createElement ( 'iframe' ) ;
1601
1605
iframe . style . borderRadius = '5px' ;
1602
- iframe . style . width = '100%' ;
1603
- iframe . style . height = '100%' ;
1606
+ iframe . style . flexGrow = '1' ;
1604
1607
modal . appendChild ( iframe ) ;
1605
1608
document . body . prepend ( modal ) ;
1606
1609
document . body . style . overflow = 'hidden' ;
Original file line number Diff line number Diff line change @@ -435,14 +435,17 @@ export default class Component {
435
435
modal . style . backgroundColor = 'rgba(0, 0, 0, .5)' ;
436
436
modal . style . zIndex = '100000' ;
437
437
modal . style . position = 'fixed' ;
438
- modal . style . width = '100vw' ;
439
- modal . style . height = '100vh' ;
438
+ modal . style . top = '0px' ;
439
+ modal . style . bottom = '0px' ;
440
+ modal . style . left = '0px' ;
441
+ modal . style . right = '0px' ;
442
+ modal . style . display = 'flex' ;
443
+ modal . style . flexDirection = 'column' ;
440
444
}
441
445
442
446
const iframe = document . createElement ( 'iframe' ) ;
443
447
iframe . style . borderRadius = '5px' ;
444
- iframe . style . width = '100%' ;
445
- iframe . style . height = '100%' ;
448
+ iframe . style . flexGrow = '1' ;
446
449
modal . appendChild ( iframe ) ;
447
450
448
451
document . body . prepend ( modal ) ;
You can’t perform that action at this time.
0 commit comments