diff --git a/website/src/repl/Footer.jsx b/website/src/repl/Footer.jsx index ed0efaef..3f3514b6 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 } = useSettings(); + const { activeFooter, isZen, panelPosition: position } = useSettings(); useLayoutEffect(() => { if (footerContent.current && activeFooter === 'console') { @@ -71,8 +71,15 @@ export function Footer({ context }) { if (isZen) { return null; } + + const isActive = activeFooter !== ''; + + let positions = { + right: cx('max-w-full flex-grow-0 flex-none overflow-hidden', isActive ? 'w-[600px] h-full' : 'absolute right-0'), + bottom: '', + }; return ( - + ); } @@ -377,6 +384,7 @@ function SettingsTab({ scheduler }) { isLineWrappingEnabled, fontSize, fontFamily, + panelPosition, } = useSettings(); return ( @@ -443,6 +451,13 @@ function SettingsTab({ scheduler }) { onChange={(cbEvent) => settingsMap.setKey('isLineWrappingEnabled', cbEvent.target.checked)} value={isLineWrappingEnabled} /> + + settingsMap.setKey('panelPosition', value)} + items={{ bottom: 'Bottom', right: 'Right' }} + > + )} - {!isEmbedded &&