From f01f3b02f445df2500c50933b789d876be1b2cf7 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 4 Oct 2025 16:02:43 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E7=A7=BB=E9=99=A4=E5=BB=B6=E8=BF=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=BA=94=E7=94=A8=E8=A7=86=E5=9B=BE=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= 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 4757f93..bf34777 100644 --- a/client/index.ts +++ b/client/index.ts @@ -26,13 +26,13 @@ import AppMobile from './ui/AppMobile.tsx' import isMobileUI from "./ui/isMobileUI.ts" ReactDOM.createRoot(document.getElementById('app') as HTMLElement).render(React.createElement(isMobileUI() ? AppMobile : App, null)) -const onResize = () => setTimeout(() => { +const onResize = () => { 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.innerWidth + 'px') // deno-lint-ignore no-window document.body.style.setProperty('--whitesilk-window-height', window.innerHeight + 'px') -}, 100) +} // deno-lint-ignore no-window no-window-prefix window.addEventListener('resize', onResize) onResize() \ No newline at end of file