From 2ae3ce53f395d307fcf8effb6e9aa3eac188bfbc Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 31 Dec 2023 01:19:46 +0100 Subject: [PATCH] hotfix: zen mode was broken --- website/src/pages/index.astro | 2 +- website/src/repl/panel/Panel.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro index 53a522e8..6630ef32 100644 --- a/website/src/pages/index.astro +++ b/website/src/pages/index.astro @@ -9,6 +9,6 @@ import { Repl } from '../repl/Repl'; Strudel REPL - + diff --git a/website/src/repl/panel/Panel.jsx b/website/src/repl/panel/Panel.jsx index eac31720..3b2b48fe 100644 --- a/website/src/repl/panel/Panel.jsx +++ b/website/src/repl/panel/Panel.jsx @@ -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; }