From 5f637dc4c77c2332e33bdc16f51be1f5265b9d22 Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 27 Mar 2024 00:05:17 +0800 Subject: [PATCH] improve styles --- frontend/src/App.tsx | 2 +- frontend/src/startup.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 3e0fc5d..f4e847f 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -83,7 +83,7 @@ const App: FC = observer(() => { ))} -
+
{pages.map(({ path, element }, index) => ( } /> diff --git a/frontend/src/startup.ts b/frontend/src/startup.ts index 5fc3414..5ecd970 100644 --- a/frontend/src/startup.ts +++ b/frontend/src/startup.ts @@ -16,6 +16,7 @@ export async function startup() { await GetPlatform().then(p => commonStore.setPlatform(p as Platform)); if (commonStore.platform !== 'web') { + document.body.style.setProperty('overflow', 'hidden'); downloadProgramFiles(); EventsOn('downloadList', (data) => { if (data)