@syntrologie/adapt-product 2.8.0-canary.340 → 2.8.0-canary.342

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/dist/cdn.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onActivate,
3
3
  runtime
4
- } from "./chunk-SI6PU2TJ.js";
4
+ } from "./chunk-EFUGWHCQ.js";
5
5
  import "./chunk-XA5XSCMX.js";
6
6
 
7
7
  // src/cdn.ts
@@ -660,7 +660,7 @@ function renderProductCard(product, density, resolved, visibleFacts) {
660
660
  const hasSalePrice = product.salePrice !== void 0;
661
661
  const activePriceText = resolved?.price ?? product.salePrice?.amount ?? product.price?.amount;
662
662
  const activeCadence = hasSalePrice ? product.salePrice?.cadence : product.price?.cadence;
663
- const thumbPx = density === "compact" ? 88 : 110;
663
+ const thumbPx = density === "compact" ? 72 : 110;
664
664
  const articleStyles = {
665
665
  display: "flex",
666
666
  flexDirection: "column",
@@ -822,7 +822,21 @@ function renderProductCard(product, density, resolved, visibleFacts) {
822
822
  ${product.tagline && isVisible("tagline") ? html`<p
823
823
  class="sc-product-card__tagline"
824
824
  data-product-tagline
825
- style=${styleMap({ margin: "0", fontSize: "0.85rem", opacity: "0.7", lineHeight: "1.3" })}
825
+ style=${styleMap({
826
+ margin: "0",
827
+ fontSize: "0.85rem",
828
+ opacity: "0.7",
829
+ lineHeight: "1.3",
830
+ // Compact's height budget can't afford a wrapped tagline —
831
+ // clamp to one line so a long tagline doesn't push the CTA
832
+ // out of the bounded deck card.
833
+ ...density === "compact" ? {
834
+ display: "-webkit-box",
835
+ webkitLineClamp: "1",
836
+ webkitBoxOrient: "vertical",
837
+ overflow: "hidden"
838
+ } : {}
839
+ })}
826
840
  >${product.tagline}</p>` : nothing}
827
841
  ${product.rating && isVisible("rating") ? html`<div
828
842
  class="sc-product-card__rating"
@@ -893,7 +907,7 @@ function renderProductCard(product, density, resolved, visibleFacts) {
893
907
  if (!isVisible("specs") || specGroups.length === 0) return nothing;
894
908
  if (density === "compact") {
895
909
  const allRows = specGroups.flatMap((g) => g.rows);
896
- const highlights = allRows.slice(0, 3);
910
+ const highlights = allRows.slice(0, 2);
897
911
  if (highlights.length === 0) return nothing;
898
912
  const pillStyles = {
899
913
  display: "inline-flex",
@@ -6868,4 +6882,4 @@ export {
6868
6882
  * SPDX-License-Identifier: BSD-3-Clause
6869
6883
  *)
6870
6884
  */
6871
- //# sourceMappingURL=chunk-SI6PU2TJ.js.map
6885
+ //# sourceMappingURL=chunk-EFUGWHCQ.js.map