@onsvisual/svelte-components 0.1.18 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
export let gap = 12;
|
|
71
71
|
|
|
72
72
|
let gridClass = !colwidth || colwidth === "full" ? "" : `grid-${colwidth}`;
|
|
73
|
-
let rowHeight = height === "full" ? "100vh" :
|
|
74
|
-
let gridGap =
|
|
73
|
+
let rowHeight = height === "full" ? "100vh" : typeof height === "number" ? height + "px" : height;
|
|
74
|
+
let gridGap = typeof gap === "number" ? gap + "px" : gap;
|
|
75
75
|
|
|
76
76
|
const defs = {
|
|
77
77
|
narrow: { w: 180, c: 4 },
|