From 4f460eeb3299710a9a3b05293ceb0cfef58c9093 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 29 Jul 2022 00:03:46 +0200 Subject: [PATCH] style errors, fixed backdrop + hide console --- repl/src/App.css | 2 +- repl/src/App.jsx | 249 ++++++++++++++++++++++++----------------------- 2 files changed, 130 insertions(+), 121 deletions(-) diff --git a/repl/src/App.css b/repl/src/App.css index 9c8edd83..c8b7b71f 100644 --- a/repl/src/App.css +++ b/repl/src/App.css @@ -20,7 +20,7 @@ body { .darken::before { content: ' '; - position: absolute; + position: fixed; top: 0; left: 0; width: 100vw; diff --git a/repl/src/App.jsx b/repl/src/App.jsx index 27c7310a..ce9be045 100644 --- a/repl/src/App.jsx +++ b/repl/src/App.jsx @@ -108,6 +108,8 @@ function App() { pattern, pushLog, pending, + hideHeader, + hideConsole, } = useRepl({ tune: '// LOADING...', defaultSynth, @@ -167,142 +169,149 @@ function App() { return (
- + )}
-
+
{/* onCursor={markParens} */} - + {!cycle.started ? `press ctrl+enter to play\n` : dirty ? `ctrl+enter to update\n` : 'no changes\n'} {error && ( -
+
{error?.message || 'unknown error'}
)}
- {!isEmbedded && ( + {!isEmbedded && !hideConsole && (