1
0
Fork 0
mirror of synced 2024-08-15 10:01:34 +12:00

Allow padding on grids when using DND

This commit is contained in:
Andrew Kingston 2022-10-24 13:14:46 +01:00
parent ba1fe6db8a
commit 21cc815976

View file

@ -7,8 +7,6 @@
export let cols = 12
export let rows = 12
let node
// Deliberately non-reactive as we want this fixed whenever the grid renders
const defaultColSpan = Math.ceil((cols + 1) / 2)
const defaultRowSpan = Math.ceil((rows + 1) / 2)
@ -27,7 +25,6 @@
</script>
<div
bind:this={node}
class="grid"
use:styleable={{
...$component.styles,
@ -37,7 +34,6 @@
"--rows": rows,
"--default-col-span": defaultColSpan,
"--default-row-span": defaultRowSpan,
padding: "0 !important",
gap: "0 !important",
},
}}