improve styles

This commit is contained in:
josc146 2024-03-27 00:05:17 +08:00
parent b7aba9c8de
commit 5f637dc4c7
2 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ const App: FC = observer(() => {
))} ))}
</TabList> </TabList>
</div> </div>
<div className="h-full w-full p-2 box-border overflow-y-hidden"> <div className="h-full w-full py-2 pr-2 box-border overflow-y-hidden">
<Routes> <Routes>
{pages.map(({ path, element }, index) => ( {pages.map(({ path, element }, index) => (
<Route key={`${path}-${index}`} path={path} element={<LazyImportComponent lazyChildren={element} />} /> <Route key={`${path}-${index}`} path={path} element={<LazyImportComponent lazyChildren={element} />} />

View File

@ -16,6 +16,7 @@ export async function startup() {
await GetPlatform().then(p => commonStore.setPlatform(p as Platform)); await GetPlatform().then(p => commonStore.setPlatform(p as Platform));
if (commonStore.platform !== 'web') { if (commonStore.platform !== 'web') {
document.body.style.setProperty('overflow', 'hidden');
downloadProgramFiles(); downloadProgramFiles();
EventsOn('downloadList', (data) => { EventsOn('downloadList', (data) => {
if (data) if (data)