@delmaredigital/payload-puck 0.6.28 → 0.6.29

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.
@@ -225,10 +225,13 @@ export const ColumnsConfig = {
225
225
  // Self-contained CSS grid — does NOT depend on the consumer's Tailwind
226
226
  // generating utility classes. Single column on mobile (stacked); switches to
227
227
  // the multi-column template at >=768px via the scoped media query below.
228
+ // NOTE: grid-template-columns must NOT be set inline — an inline style would
229
+ // outrank the @media rule below (inline beats stylesheet, media queries
230
+ // included), pinning the layout to one column. Both the mobile base and the
231
+ // responsive override live in the scoped <style> so the media query can win.
228
232
  const colsTemplate = resolveColumnsTemplate(safeCount, distribution);
229
233
  const gridStyles = {
230
234
  display: 'grid',
231
- gridTemplateColumns: '1fr',
232
235
  gap,
233
236
  ...dimensionsResult.baseStyles,
234
237
  '--cols-template': colsTemplate
@@ -260,6 +263,7 @@ export const ColumnsConfig = {
260
263
  }),
261
264
  /*#__PURE__*/ _jsx("style", {
262
265
  children: `
266
+ .${contentClass} { grid-template-columns: 1fr; }
263
267
  @media (min-width: 768px) {
264
268
  .${contentClass} {
265
269
  grid-template-columns: var(--cols-template);
@@ -106,10 +106,13 @@ export const ColumnsConfig = {
106
106
  // generating utility classes. Single column on mobile (stacked); switches to
107
107
  // the multi-column template at >=768px via the scoped media query below.
108
108
  // grid-template-columns is dynamic, so drive it from a CSS var.
109
+ // NOTE: grid-template-columns must NOT be set inline — an inline style would
110
+ // outrank the @media rule below (inline beats stylesheet, media queries
111
+ // included), pinning the layout to one column. Both the mobile base and the
112
+ // responsive override live in the scoped <style> so the media query can win.
109
113
  const colsTemplate = resolveColumnsTemplate(safeCount, distribution);
110
114
  const gridStyles = {
111
115
  display: 'grid',
112
- gridTemplateColumns: '1fr',
113
116
  gap,
114
117
  ...dimensionsResult.baseStyles,
115
118
  '--cols-template': colsTemplate
@@ -141,6 +144,7 @@ export const ColumnsConfig = {
141
144
  }),
142
145
  /*#__PURE__*/ _jsx("style", {
143
146
  children: `
147
+ .${contentClass} { grid-template-columns: 1fr; }
144
148
  @media (min-width: 768px) {
145
149
  .${contentClass} {
146
150
  grid-template-columns: var(--cols-template);
@@ -183,9 +183,12 @@ export const GridConfig = {
183
183
  // generating utility classes. Single column on mobile (children stacked);
184
184
  // switches to the multi-column track at >=768px via the scoped media query.
185
185
  // grid-template-columns is dynamic, so drive the column count from a CSS var.
186
+ // NOTE: grid-template-columns must NOT be set inline — an inline style would
187
+ // outrank the @media rule below (inline beats stylesheet, media queries
188
+ // included), pinning the layout to one column. Both the mobile base and the
189
+ // responsive override live in the scoped <style> so the media query can win.
186
190
  const gridStyles = {
187
191
  display: 'grid',
188
- gridTemplateColumns: '1fr',
189
192
  gap,
190
193
  ...dimensionsResult.baseStyles,
191
194
  '--grid-cols': numColumns
@@ -208,6 +211,7 @@ export const GridConfig = {
208
211
  }),
209
212
  /*#__PURE__*/ _jsx("style", {
210
213
  children: `
214
+ .${contentClass} { grid-template-columns: 1fr; }
211
215
  @media (min-width: 768px) {
212
216
  .${contentClass} {
213
217
  grid-template-columns: repeat(var(--grid-cols), 1fr);
@@ -92,9 +92,12 @@ export const GridConfig = {
92
92
  // generating utility classes. Single column on mobile (children stacked);
93
93
  // switches to the multi-column track at >=768px via the scoped media query.
94
94
  // grid-template-columns is dynamic, so drive the column count from a CSS var.
95
+ // NOTE: grid-template-columns must NOT be set inline — an inline style would
96
+ // outrank the @media rule below (inline beats stylesheet, media queries
97
+ // included), pinning the layout to one column. Both the mobile base and the
98
+ // responsive override live in the scoped <style> so the media query can win.
95
99
  const gridStyles = {
96
100
  display: 'grid',
97
- gridTemplateColumns: '1fr',
98
101
  gap,
99
102
  ...dimensionsResult.baseStyles,
100
103
  '--grid-cols': numColumns
@@ -119,6 +122,7 @@ export const GridConfig = {
119
122
  }),
120
123
  /*#__PURE__*/ _jsx("style", {
121
124
  children: `
125
+ .${contentClass} { grid-template-columns: 1fr; }
122
126
  @media (min-width: 768px) {
123
127
  .${contentClass} {
124
128
  grid-template-columns: repeat(var(--grid-cols), 1fr);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.6.28";
1
+ export declare const VERSION = "0.6.29";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Auto-generated by scripts/generate-version.js - do not edit manually
2
- export const VERSION = '0.6.28';
2
+ export const VERSION = '0.6.29';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delmaredigital/payload-puck",
3
- "version": "0.6.28",
3
+ "version": "0.6.29",
4
4
  "description": "Puck visual page builder plugin for Payload CMS",
5
5
  "type": "module",
6
6
  "license": "MIT",