From b7c187623d385a460402343d1db10fea45d95e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=B5=E8=90=BD?= Date: Thu, 15 Apr 2021 17:31:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=97=B6=E8=AE=BE=E5=A4=87=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E8=B6=85=E8=BF=87=E9=A1=B5=E9=9D=A2bug;iphonex/6=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/builtin-simulator/host.less | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/designer/src/builtin-simulator/host.less b/packages/designer/src/builtin-simulator/host.less index 3b110e3db..669a40f6d 100644 --- a/packages/designer/src/builtin-simulator/host.less +++ b/packages/designer/src/builtin-simulator/host.less @@ -24,7 +24,11 @@ &-device-mobile { left: 50%; - width: 378px; + width: 375px; + top: 16px; + bottom: 16px; + max-height: calc(100% - 32px); + max-width: calc(100% - 32px); transform: translateX(-50%); box-shadow: 0 2px 10px 0 rgba(31,56,88,.15); } @@ -33,11 +37,11 @@ left: 50%; top: 50%; transform: translate(-50%, -50%); - width: 378px; + width: 375px; 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; + background-size: 375px 812px; border-radius: 44px; box-shadow: rgba(0, 0, 0, 0.1) 0 36px 42px; .@{scope}-canvas-viewport { @@ -52,10 +56,10 @@ &-device-iphone6 { left: 50%; - width: 378px; + width: 375px; transform: translateX(-50%); background: url(https://img.alicdn.com/tps/TB12GetLpXXXXXhXFXXXXXXXXXX-756-1544.png) no-repeat top; - background-size: 378px 772px; + background-size: 375px 772px; top: 8px; .@{scope}-canvas-viewport { width: auto; From e9bea627ef2f4b4237a289e873e0e08b2e97d973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=B5=E8=90=BD?= Date: Thu, 15 Apr 2021 19:12:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20rax=E6=A8=A1=E6=8B=9F=E5=99=A8?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=BB=9A=E5=8A=A8=E6=9D=A1=EF=BC=88=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8FIDE=E5=92=8C=E4=B8=80=E8=88=AC=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=9C=9F=E6=AD=A3=E6=98=BE=E7=A4=BA=E9=83=BD?= =?UTF-8?q?=E6=98=AF=E6=B2=A1=E6=9C=89=E7=9A=84=EF=BC=89=EF=BC=8C=E4=B9=9F?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=8D=A0=E7=94=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=80=BB=E5=AE=BD=E5=BA=A6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rax-simulator-renderer/src/renderer.less | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/rax-simulator-renderer/src/renderer.less b/packages/rax-simulator-renderer/src/renderer.less index abc72bd4d..b71dde989 100644 --- a/packages/rax-simulator-renderer/src/renderer.less +++ b/packages/rax-simulator-renderer/src/renderer.less @@ -18,13 +18,7 @@ html.engine-cursor-ew-resize, html.engine-cursor-ew-resize * { } ::-webkit-scrollbar { - width: 5px; - height: 5px; -} - -::-webkit-scrollbar-thumb { - background-color: rgba(0, 0, 0, 0.3); - border-radius: 5px; + display: none; } .lc-container {