Remove base env, fix hotkeys, and QoL improvements

This commit is contained in:
Gregory Schier
2024-01-07 22:24:19 -08:00
parent 35e40d2c55
commit 88ea68e72f
10 changed files with 90 additions and 67 deletions

View File

@@ -41,9 +41,13 @@ export default function Workspace() {
// float/un-float sidebar on window resize
useEffect(() => {
const shouldHide = windowSize.width <= WINDOW_FLOATING_SIDEBAR_WIDTH;
if (shouldHide) setFloating(true);
else if (!shouldHide) setFloating(false);
}, [windowSize.width]);
if (shouldHide && !floating) {
setFloating(true);
hide();
} else if (!shouldHide && floating) {
setFloating(false);
}
}, [floating, hide, windowSize.width]);
const unsub = () => {
if (moveState.current !== null) {