🐛 Fix styles issue

This commit is contained in:
LittleSheep 2024-02-08 03:27:40 +08:00
parent fb2d2a3b84
commit 6a48508ffd

View File

@ -26,17 +26,21 @@ export default function RootLayout(props: any) {
if (!userinfo?.isLoggedIn && blacklist.includes(path)) {
if (!e?.defaultPrevented) e?.preventDefault();
navigate(`/auth?redirect_uri=${path}`);
if (location.query["embedded"]) {
navigate(`/auth?redirect_uri=${path}&embedded=${location.query["embedded"]}`);
} else {
navigate(`/auth?redirect_uri=${path}`);
}
}
}
const mainContentStyles = createMemo(() => {
if(!searchParams["noTitle"]) {
return "h-[calc(100vh-64px)] mt-[64px]"
if (!searchParams["noTitle"]) {
return "h-[calc(100vh-64px)] mt-[64px]";
} else {
return "h-[100vh]"
return "h-[100vh]";
}
})
});
return (
<Show when={ready()} fallback={