hotfix: zen mode was broken

This commit is contained in:
Felix Roos 2023-12-31 01:19:46 +01:00
parent 2adacbd27b
commit 2ae3ce53f3
2 changed files with 2 additions and 2 deletions

View File

@ -9,6 +9,6 @@ import { Repl } from '../repl/Repl';
<title>Strudel REPL</title>
</head>
<body class="h-app-height bg-background">
<Repl client:load />
<Repl client:only="react" />
</body>
</html>

View File

@ -74,6 +74,7 @@ export function Panel({ context }) {
{activeFooter === name && <>{children}</>}
</>
);
const client = useClient();
if (isZen) {
return null;
}
@ -84,7 +85,6 @@ export function Panel({ context }) {
right: cx('max-w-full flex-grow-0 flex-none overflow-hidden', isActive ? 'w-[600px] h-full' : 'absolute right-0'),
bottom: cx('relative', isActive ? 'h-[360px] min-h-[360px]' : ''),
};
const client = useClient();
if (!client) {
return null;
}