vaheqelyan / svelte-grid

A responsive, draggable and resizable grid layout, for Svelte. [NOT MAINTAINED]

Home Page:https://svelte-grid.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove need for container max-width in the parent container.

xWayfinder opened this issue · comments

The library doesn't work unless the max-width is set on the parent container like so:

.demo-container {
  max-width: 800px;
  width: 100%;
}
commented

try to install v5.1.0. it should work..
but you still need to specify at least one breakpoint

<Grid cols={cols} />

<script>
const cols = [
  [ 1100, 6 ],
]
</script>