From 37a35022f5df4471e55fcbbd45137695d364f906 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 18 Aug 2023 23:45:55 +0200 Subject: [PATCH] fix panel scroll + move to bottom when minimized --- website/src/repl/Footer.jsx | 6 +++--- website/src/repl/Repl.jsx | 2 +- website/src/settings.mjs | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/website/src/repl/Footer.jsx b/website/src/repl/Footer.jsx index 1d8dedee..bfa46bd3 100644 --- a/website/src/repl/Footer.jsx +++ b/website/src/repl/Footer.jsx @@ -16,7 +16,7 @@ const TAURI = window.__TAURI__; export function Footer({ context }) { const footerContent = useRef(); const [log, setLog] = useState([]); - const { activeFooter, isZen, panelPosition: position } = useSettings(); + const{ activeFooter, isZen, panelPosition } = useSettings(); useLayoutEffect(() => { if (footerContent.current && activeFooter === 'console') { @@ -76,10 +76,10 @@ export function Footer({ context }) { let positions = { right: cx('max-w-full flex-grow-0 flex-none overflow-hidden', isActive ? 'w-[600px] h-full' : 'absolute right-0'), - bottom: 'h-[360px] min-h-[360px] relative', + bottom: cx('relative', isActive ? 'h-[360px] min-h-[360px]' : ''), }; return ( -