Allow padding on grids when using DND
This commit is contained in:
parent
a0c02be585
commit
53078d44e6
|
@ -7,8 +7,6 @@
|
||||||
export let cols = 12
|
export let cols = 12
|
||||||
export let rows = 12
|
export let rows = 12
|
||||||
|
|
||||||
let node
|
|
||||||
|
|
||||||
// Deliberately non-reactive as we want this fixed whenever the grid renders
|
// Deliberately non-reactive as we want this fixed whenever the grid renders
|
||||||
const defaultColSpan = Math.ceil((cols + 1) / 2)
|
const defaultColSpan = Math.ceil((cols + 1) / 2)
|
||||||
const defaultRowSpan = Math.ceil((rows + 1) / 2)
|
const defaultRowSpan = Math.ceil((rows + 1) / 2)
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
bind:this={node}
|
|
||||||
class="grid"
|
class="grid"
|
||||||
use:styleable={{
|
use:styleable={{
|
||||||
...$component.styles,
|
...$component.styles,
|
||||||
|
@ -37,7 +34,6 @@
|
||||||
"--rows": rows,
|
"--rows": rows,
|
||||||
"--default-col-span": defaultColSpan,
|
"--default-col-span": defaultColSpan,
|
||||||
"--default-row-span": defaultRowSpan,
|
"--default-row-span": defaultRowSpan,
|
||||||
padding: "0 !important",
|
|
||||||
gap: "0 !important",
|
gap: "0 !important",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue