Refactor DND labels to before and after rather then above and below
This commit is contained in:
parent
9634b021a5
commit
392a1f05ee
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue