From 0026cae63926588d57b73e3a3d8138ce8a5e2bc6 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Fri, 3 Oct 2025 23:07:21 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E7=B9=BC=E7=BA=8C=E4=BF=AE=E7=B9=95=20on?= =?UTF-8?q?Resize=20=E9=82=8F=E8=BC=AF=20*=20Edge=2084,=20=E4=BD=86?= =?UTF-8?q?=E6=98=AF=E5=BB=A2=E4=BA=86=20*=20=E5=AF=A6=E9=9A=9B=E4=B8=8A,?= =?UTF-8?q?=20avail*=20=E4=B8=8D=E5=87=86,=20=E4=BD=86=E6=98=AF=E4=B8=A6?= =?UTF-8?q?=E4=B8=8D=E7=9F=A5=E9=81=93=E4=BB=80=E9=BA=BD=E6=83=85=E6=B3=81?= =?UTF-8?q?=E4=B8=8B=E6=89=8D=E6=9C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/index.ts b/client/index.ts index 777031f..9b888af 100644 --- a/client/index.ts +++ b/client/index.ts @@ -29,10 +29,10 @@ ReactDOM.createRoot(document.getElementById('app') as HTMLElement).render(React. const onResize = () => setTimeout(() => { document.body.style.setProperty('--whitesilk-widget-message-maxwidth', breakpoint().down('md') ? "80%" : "70%") // deno-lint-ignore no-window - document.body.style.setProperty('--whitesilk-window-width', window.screen.availWidth + 'px') + document.body.style.setProperty('--whitesilk-window-width', (isMobileUI() ? window.screen.availWidth : window.innerWidth) + 'px') // deno-lint-ignore no-window - document.body.style.setProperty('--whitesilk-window-height', window.screen.availHeight + 'px') + document.body.style.setProperty('--whitesilk-window-height', (isMobileUI() ? window.screen.availHeight : window.innerHeight) + 'px') }, 100) // deno-lint-ignore no-window no-window-prefix window.addEventListener('resize', onResize) -onResize() +onResize() \ No newline at end of file