mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
hotfix: zen mode was broken
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user