@xenterprises/nuxt-x-marketing 1.15.0 → 1.15.1

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.
package/CHANGELOG.md CHANGED
@@ -30,6 +30,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
30
  section and its sample product data were dropped with them. Every other section of the
31
31
  demo page is unchanged.
32
32
 
33
+ ## [1.15.1] - 2026-10-18
34
+
35
+ ### Fixed
36
+
37
+ - **`XMarkCTA` long button labels wrap on narrow screens** instead of being clipped (seen on
38
+ 375/390px phones). UButton renders its label with `truncate` (nowrap) inside an `inline-flex`
39
+ button with no max width, so a long label pushed the button past the section edge. XMarkCTA now
40
+ passes `ui: { base: "max-w-full", label: "whitespace-normal break-words text-center" }`: the
41
+ button is capped at its row, the label wraps centered, and the button grows in height.
42
+ Short labels (every width) and desktop are pixel-identical to 1.15.0. XMarkHero and the
43
+ pre-footer section use the default slot (no `truncate`) and already wrapped; they are unchanged.
44
+
33
45
  ## [1.15.0] - 2026-10-13
34
46
 
35
47
  HTML change, no visual change: screenshots at 1440 and 390 (default and `container="lg"`) are
@@ -67,6 +67,7 @@
67
67
  :icon="button.icon"
68
68
  :size="size === 'lg' ? 'lg' : 'md'"
69
69
  :class="getButtonClass(button, index)"
70
+ :ui="buttonUi"
70
71
  />
71
72
  </div>
72
73
  </div>
@@ -272,6 +273,19 @@ const buttonsClasses = computed(() => {
272
273
  return layouts[props.variant];
273
274
  });
274
275
 
276
+ /**
277
+ * 1.15.1: let long labels wrap on narrow screens. Nuxt UI's UButton puts `truncate`
278
+ * (white-space: nowrap; overflow: hidden; text-overflow: ellipsis) on the label and the
279
+ * button is inline-flex with no max width, so a long label is forced onto one line and the
280
+ * button runs past the section edge, where `overflow-hidden` clips it.
281
+ * max-w-full caps the button at its row; whitespace-normal lets the label wrap only when it
282
+ * no longer fits; text-center centres the wrapped lines. Labels that fit are unaffected.
283
+ */
284
+ const buttonUi = {
285
+ base: "max-w-full",
286
+ label: "whitespace-normal break-words text-center",
287
+ };
288
+
275
289
  const getButtonColor = (button, index) => {
276
290
  // Allow explicit color override
277
291
  if (button.color && button.color !== "white") return button.color;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@xenterprises/nuxt-x-marketing",
3
3
  "license": "SEE LICENSE IN LICENSE",
4
4
  "type": "module",
5
- "version": "1.15.0",
5
+ "version": "1.15.1",
6
6
  "main": "./nuxt.config.ts",
7
7
  "scripts": {
8
8
  "dev": "nuxi dev .playground",