1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

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

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) => {