diff --git a/packages/designer/src/builtin-simulator/host.less b/packages/designer/src/builtin-simulator/host.less index d5e29f31d..f763c732f 100644 --- a/packages/designer/src/builtin-simulator/host.less +++ b/packages/designer/src/builtin-simulator/host.less @@ -30,15 +30,16 @@ } &-device-iphonex { // 增加默认的小程序的壳 - left: calc(~"50% - 189px"); - top: calc(~"50% - 406px"); + left: 50%; + top: 50%; + transform: translate(-50%, -50%); width: 378px; - max-height: 812px; + height: 812px; + max-height: calc(100vh - 50px); background: url(https://img.alicdn.com/tfs/TB1b4DHilFR4u4jSZFPXXanzFXa-750-1574.png) no-repeat top; background-size: 378px 812px; border-radius: 44px; box-shadow: rgba(0, 0, 0, 0.1) 0px 36px 42px; - transform: scale(1); .@{scope}-canvas-viewport { width: auto; top: 50px; diff --git a/packages/rax-simulator-renderer/package.json b/packages/rax-simulator-renderer/package.json index 36d44c1a5..9c4f6a759 100644 --- a/packages/rax-simulator-renderer/package.json +++ b/packages/rax-simulator-renderer/package.json @@ -55,5 +55,5 @@ "ts-node/register" ] }, - "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.8.44/build/index.html" + "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.8.45/build/index.html" }