Refactor DND labels to before and after rather then above and below

This commit is contained in:
Andrew Kingston 2021-09-20 15:35:27 +01:00
parent 488ec4d988
commit 9febe391bb
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
export let transition export let transition
$: dimensions = getDimensions(dropInfo?.bounds, dropInfo?.mode) $: dimensions = getDimensions(dropInfo?.bounds, dropInfo?.mode)
$: prefix = dropInfo?.mode === "above" ? "Above" : "Below" $: prefix = dropInfo?.mode === "above" ? "Before" : "After"
$: text = `${prefix} ${dropInfo?.name}` $: text = `${prefix} ${dropInfo?.name}`
const getDimensions = (bounds, mode) => { const getDimensions = (bounds, mode) => {