Closed drfarrell closed 3 weeks ago
This should be somewhat straightforward using existing helpers from drag elements and change get insert location to return an index instead of an append https://github.com/onlook-dev/onlook/blob/615ea6c92ec55765ca4767ad5e194395750d3873/app/electron/preload/webview/elements/dom/insert.ts#L9-L21
Would like to work on it @drfarrell :)
Go for it @sambhavnrana
Currently new elements append to the end of the stack or grid, but it would be expected that the element is dropped-in within the stack or grid at the index closest to where it was drawn.