You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, there are import problems showing during the build-time due to missing main field in your package.json.
Would be cool if you add there:
,
"main": "./index.js",
"types": "./types.d.ts"
Second is the way you check SSR mode in HorizontalCenterDropZone.js:
!import.meta.env.SSR
please, change it at least to:
!import.meta.env?.SSR
And also there is incorrect import of writable in the DragDropList.svelte, you should move it from script tag to the top of module script tag, like:
<script context="module">
import { writable } from "svelte/store";
...
'cause you define the dragging const there.
After that your lib will be more usable (and will work in REPL, I think, cause now it doesn't).
And the last, but much more serious problem is that your list item positioning algorithm does not support different item sizes, unfortunately. Can you solve it, pls? :)
Thanks!
The text was updated successfully, but these errors were encountered:
Looks like I have found a workaround to adjust items of different sizes.
Give itemSize to around 200-300 (play around with it; dragging the items around), and give itemClass. (Say, the itemClass is "single-item"). Then, give the css to it in your global css file as below:
.single-item {
height: fit-content !important;
}
The DragDropList component should look something similar to this:
Hello! Nice lib!
But there are few problems.
First of all, there are import problems showing during the build-time due to missing main field in your package.json.
Would be cool if you add there:
Second is the way you check SSR mode in HorizontalCenterDropZone.js:
please, change it at least to:
And also there is incorrect import of writable in the DragDropList.svelte, you should move it from script tag to the top of module script tag, like:
'cause you define the
dragging
const there.After that your lib will be more usable (and will work in REPL, I think, cause now it doesn't).
And the last, but much more serious problem is that your list item positioning algorithm does not support different item sizes, unfortunately. Can you solve it, pls? :)
Thanks!
The text was updated successfully, but these errors were encountered: