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