feat: clamp AddMenu to viewport
🚀 Lint & Test & Deploy / release (push) Successful in 4m10s

This commit is contained in:
release-bot
2026-02-10 21:51:50 +01:00
parent a31a49ad50
commit 07cd9e84eb
5 changed files with 82 additions and 18 deletions
+5 -1
View File
@@ -2,7 +2,11 @@
import { type Snippet } from 'svelte';
import { panelState as state } from './PanelState.svelte';
const { children } = $props<{ children?: Snippet }>();
let { children, open = $bindable(false) } = $props<{ children?: Snippet; open?: boolean }>();
$effect(() => {
open = !!state.activePanel.value;
});
</script>
<div class="wrapper" class:visible={state.activePanel.value}>