From af694f6f6c2fc73af99afc8d4524cd5733748552 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Fri, 3 Oct 2025 23:58:16 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20fallback=20to=20window.inner*=20*=20Andro?= =?UTF-8?q?id=20=E4=B8=8A,=20avail*=20=E8=BF=98=E6=98=AF=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/index.ts b/client/index.ts index 9b888af..4757f93 100644 --- a/client/index.ts +++ b/client/index.ts @@ -29,9 +29,9 @@ 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', (isMobileUI() ? window.screen.availWidth : window.innerWidth) + 'px') + document.body.style.setProperty('--whitesilk-window-width', window.innerWidth + 'px') // deno-lint-ignore no-window - document.body.style.setProperty('--whitesilk-window-height', (isMobileUI() ? window.screen.availHeight : window.innerHeight) + 'px') + document.body.style.setProperty('--whitesilk-window-height', window.innerHeight + 'px') }, 100) // deno-lint-ignore no-window no-window-prefix window.addEventListener('resize', onResize)