juxscript 1.0.124 → 1.0.126
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.
|
@@ -28,8 +28,10 @@ export class GridSkin extends BaseSkin {
|
|
|
28
28
|
this.root.style.height = state.height;
|
|
29
29
|
this.root.style.gap = state.gap;
|
|
30
30
|
// CSS Grid Definitions
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
// We accept 'size', but also semantically valid 'height' (rows) and 'width' (cols)
|
|
32
|
+
// This allows mixing units: 1fr, 200px, 20%, auto, etc.
|
|
33
|
+
const rowSizes = state.rows.map(r => r.size || r.height || 'auto').join(' ');
|
|
34
|
+
const colSizes = state.columns.map(c => c.size || c.width || 'auto').join(' ');
|
|
33
35
|
this.root.style.gridTemplateRows = rowSizes;
|
|
34
36
|
this.root.style.gridTemplateColumns = colSizes;
|
|
35
37
|
// 2. Structural Reconciliation
|