This commit is contained in:
Dean 2024-10-24 11:17:19 +01:00
parent f159a51da3
commit 7f1184bb40
4 changed files with 10 additions and 13 deletions

View File

@ -1,7 +1,12 @@
<script> <script>
import { onDestroy, tick } from "svelte"
import { writable } from "svelte/store" import { writable } from "svelte/store"
import { setContext, onMount, createEventDispatcher } from "svelte" import {
setContext,
onMount,
createEventDispatcher,
onDestroy,
tick,
} from "svelte"
import { Utils } from "@budibase/frontend-core" import { Utils } from "@budibase/frontend-core"
import { selectedAutomation, automationStore } from "stores/builder" import { selectedAutomation, automationStore } from "stores/builder"
@ -72,7 +77,6 @@
dragging: false, dragging: false,
moveStep: null, moveStep: null,
dragSpot: null, dragSpot: null,
dragging: false,
scale: 1, scale: 1,
dropzones: {}, dropzones: {},
//focus - node to center on? //focus - node to center on?
@ -220,7 +224,7 @@
} }
} }
const onViewDragEnd = e => { const onViewDragEnd = () => {
down = false down = false
dragOffset = [] dragOffset = []
} }
@ -356,7 +360,7 @@
on:mousemove={Utils.domDebounce(onMouseMove)} on:mousemove={Utils.domDebounce(onMouseMove)}
> >
<div <div
class="view" class="draggable-view"
bind:this={viewPort} bind:this={viewPort}
on:wheel={Utils.domDebounce(onViewScroll)} on:wheel={Utils.domDebounce(onViewScroll)}
on:mousemove={Utils.domDebounce(onViewMouseMove)} on:mousemove={Utils.domDebounce(onViewMouseMove)}
@ -390,7 +394,6 @@
dragging: false, dragging: false,
moveStep: null, moveStep: null,
dragSpot: null, dragSpot: null,
dragging: false,
dropzones: {}, dropzones: {},
})) }))
}} }}
@ -406,7 +409,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.view { .draggable-view {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;

View File

@ -28,7 +28,6 @@
}) })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
id={`dz-${dzid}`} id={`dz-${dzid}`}
bind:this={dropEle} bind:this={dropEle}

View File

@ -37,7 +37,6 @@
const view = getContext("view") const view = getContext("view")
const pos = getContext("viewPos") const pos = getContext("viewPos")
const contentPos = getContext("contentPos")
let webhookModal let webhookModal
let open = true let open = true

View File

@ -991,10 +991,6 @@
white-space: unset; white-space: unset;
} }
.field-width {
width: 320px;
}
.step-fields { .step-fields {
display: flex; display: flex;
flex-direction: column; flex-direction: column;