Always show server address input on SplashScreen

In case the webUI wasn't hosted on the same domain as the server, the ui was stuck on the splash screen, due to the inferred server address being wrong.
This commit is contained in:
schroda
2025-09-10 00:44:23 +02:00
parent e138229832
commit 9486bf1a81

View File

@@ -18,6 +18,7 @@ export const SplashScreen = () => {
return ( return (
<Stack <Stack
sx={{ sx={{
position: 'relative',
minWidth: '100vw', minWidth: '100vw',
minHeight: '100vh', minHeight: '100vh',
justifyContent: 'center', justifyContent: 'center',
@@ -39,11 +40,9 @@ export const SplashScreen = () => {
}, },
}} }}
/> />
{import.meta.env.DEV && ( <Stack sx={{ position: 'absolute', left: 0, bottom: 0 }}>
<Stack sx={{ height: 'auto', mt: 5 }}> <ServerAddressSetting />
<ServerAddressSetting /> </Stack>
</Stack>
)}
</Stack> </Stack>
); );
}; };