From 40b52dd5170f3fef74687c03542210d2fa832053 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 7 Dec 2021 01:54:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20auto500px=20=EA=B0=80=EB=A1=9C=EB=AA=A8?= =?UTF-8?q?=EB=93=9C=20=EB=AF=B8=EC=84=A4=EC=A0=95=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/util/auto500px.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hwe/ts/util/auto500px.ts b/hwe/ts/util/auto500px.ts index aebc890d..7441683a 100644 --- a/hwe/ts/util/auto500px.ts +++ b/hwe/ts/util/auto500px.ts @@ -36,7 +36,7 @@ export function auto500px(targetHeight = 700): void { if (innerHeight < selectorHeight) { const maybeNextWidth = deviceWidth / innerHeight * selectorHeight; - if (maybeNextWidth >= 750) { + if (maybeNextWidth >= 700) { viewportMeta.content = 'width=1000, initial-scale=1'; } else { @@ -44,6 +44,12 @@ export function auto500px(targetHeight = 700): void { } return; } + else if(deviceWidth >= 700){ + viewportMeta.content = 'width=1000, initial-scale=1'; + } + else{ + viewportMeta.content = 'width=device-width, initial-scale=1'; + } } htmlReady(() => {