🐛 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 (!userinfo?.isLoggedIn && blacklist.includes(path)) {
if (!e?.defaultPrevented) e?.preventDefault(); if (!e?.defaultPrevented) e?.preventDefault();
if (location.query["embedded"]) {
navigate(`/auth?redirect_uri=${path}&embedded=${location.query["embedded"]}`);
} else {
navigate(`/auth?redirect_uri=${path}`); navigate(`/auth?redirect_uri=${path}`);
} }
} }
}
const mainContentStyles = createMemo(() => { const mainContentStyles = createMemo(() => {
if (!searchParams["noTitle"]) { if (!searchParams["noTitle"]) {
return "h-[calc(100vh-64px)] mt-[64px]" return "h-[calc(100vh-64px)] mt-[64px]";
} else { } else {
return "h-[100vh]" return "h-[100vh]";
} }
}) });
return ( return (
<Show when={ready()} fallback={ <Show when={ready()} fallback={