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 9634b021a5
commit 392a1f05ee
1 changed files with 1 additions and 1 deletions

View File

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