diff --git a/app/components/board/BoardSection.vue b/app/components/board/BoardSection.vue index 1e70b2f..b51856f 100644 --- a/app/components/board/BoardSection.vue +++ b/app/components/board/BoardSection.vue @@ -6,7 +6,7 @@ const props = defineProps<{ section: BoardSection }>() -const { isEditing, markDirty } = useEditMode() +const { isEditing, showWidgetPicker, markDirty } = useEditMode() const store = useBoardStore() const showSettings = ref(false) @@ -104,6 +104,11 @@ function toggleCollapse() { group="widgets" :animation="150" ghost-class="opacity-30" + :force-fallback="true" + :fallback-on-body="true" + :fallback-tolerance="3" + filter=".no-drag" + :prevent-on-filter="false" class="grid gap-4" :class="gridClass" @change="onDragChange" @@ -118,9 +123,10 @@ function toggleCollapse() { -
Drag widgets here or add from the widget picker

-
+ const store = useBoardStore() -const { isEditing, hasUnsavedChanges, enterEditMode, exitEditMode, markDirty } = useEditMode() - -const showWidgetPicker = ref(false) +const { isEditing, hasUnsavedChanges, showWidgetPicker, enterEditMode, exitEditMode, markDirty } = useEditMode() const showBoardSettings = ref(false) const toast = useToast() diff --git a/app/components/board/BoardView.vue b/app/components/board/BoardView.vue index 81ead8a..8bda944 100644 --- a/app/components/board/BoardView.vue +++ b/app/components/board/BoardView.vue @@ -14,6 +14,9 @@ const { isEditing, markDirty } = useEditMode() handle=".section-handle" :animation="150" ghost-class="opacity-30" + :force-fallback="true" + :fallback-on-body="true" + :fallback-tolerance="3" class="flex flex-col gap-6" @change="markDirty" > diff --git a/app/components/editor/EditorContextMenu.vue b/app/components/editor/EditorContextMenu.vue index 9944782..2721bee 100644 --- a/app/components/editor/EditorContextMenu.vue +++ b/app/components/editor/EditorContextMenu.vue @@ -11,6 +11,7 @@ const store = useBoardStore() const { markDirty } = useEditMode() const showSettings = ref(false) +const menuOpen = ref(false) const items = computed(() => { if (props.disabled) return [] @@ -113,18 +114,14 @@ const items = computed(() => {