vaheqelyan / svelte-grid

A responsive, draggable and resizable grid layout, for Svelte.
https://svelte-grid.now.sh/
MIT License
948 stars 57 forks source link

svlt-grid-active and svlt-grid-shadow are misaligned #158

Open MarcDAFrame opened 1 month ago

MarcDAFrame commented 1 month ago

I have the following structure to my app

<div>
    <AbsoluteSidebar />
    <div margin-left="sidebarwidth">
        <SvelteGrid />
    </div>
</div>

when I remove the margin, the shadow is aligned with the active div I've tried other methods of moving the grid area to the left including

but always with the same issue where the offset is equal to how much I've moved it from the left.

Any thoughts on why this is happening?

https://github.com/vaheqelyan/svelte-grid/assets/12240832/fcadcc86-83e0-4003-80dd-e57561410517

MarcDAFrame commented 1 month ago

ok I figured it out it was because of a weird interaction with tailwind drop-shadow-md