@@ -339,16 +339,16 @@ const DeviceWrapper = ({
339
339
340
340
const deviceWidth = useMemo ( ( ) => {
341
341
if ( deviceType === 'tablet' && deviceOrientation === 'portrait' ) {
342
- return 700 ;
342
+ return 980 ;
343
343
}
344
344
if ( deviceType === 'tablet' && deviceOrientation === 'landscape' ) {
345
- return 900 ;
345
+ return 1280 ;
346
346
}
347
347
if ( deviceType === 'mobile' && deviceOrientation === 'portrait' ) {
348
- return 450 ;
348
+ return 550 ;
349
349
}
350
350
if ( deviceType === 'mobile' && deviceOrientation === 'landscape' ) {
351
- return 900 ;
351
+ return 1200 ;
352
352
}
353
353
} , [ deviceType , deviceOrientation ] ) ;
354
354
@@ -489,30 +489,12 @@ function EditorView(props: EditorViewProps) {
489
489
490
490
return (
491
491
editorState . deviceType === "mobile" || editorState . deviceType === "tablet" ? (
492
- < div style = { {
493
- display : "flex" ,
494
- flexDirection : "row" , // Arrange side by side
495
- gap : "20px" , // Spacing between the two DeviceWrappers
496
- justifyContent : "center" , // Center horizontally
497
- alignItems : "center" , // Center vertically
498
- height : "auto" , // Full viewport height for vertical centering
499
- width : "100%" , // Full viewport width
500
-
501
- } } >
502
- < DeviceWrapper
492
+ < DeviceWrapper
503
493
deviceType = { editorState . deviceType }
504
- deviceOrientation = "portrait"
494
+ deviceOrientation = { editorState . deviceOrientation }
505
495
>
506
496
{ uiComp . getView ( ) }
507
- </ DeviceWrapper >
508
-
509
- < DeviceWrapper
510
- deviceType = { editorState . deviceType }
511
- deviceOrientation = "landscape"
512
- >
513
- { uiComp . getView ( ) }
514
- </ DeviceWrapper >
515
- </ div >
497
+ </ DeviceWrapper >
516
498
) : (
517
499
< div >
518
500
{ uiComp . getView ( ) }
0 commit comments