@primestyleai/tryon 5.8.50 → 5.8.52

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.
@@ -790,18 +790,19 @@ const STYLES = `
790
790
  }
791
791
  .ps-tryon-modal-wide {
792
792
  /* Use the SMALLER of 55vw or 92dvh×(16/10) for width so the modal
793
- never gets wider than the height can support. This keeps the
794
- aspect ratio roughly 16:10 regardless of screen shape. */
793
+ never gets wider than the height can support. Height bumped from
794
+ 70dvh 82dvh to fit the longer accessory photo step (guidelines +
795
+ legal notice + nav) without pushing content under the Analyze CTA. */
795
796
  width: min(55vw, calc(92dvh * 1.6));
796
797
  max-width: min(55vw, calc(92dvh * 1.6));
797
- height: min(70dvh, calc(55vw / 1.6));
798
- max-height: min(92dvh, calc(55vw / 1.6));
798
+ height: min(82dvh, calc(55vw / 1.35));
799
+ max-height: min(92dvh, calc(55vw / 1.35));
799
800
  display: flex; flex-direction: column; overflow: hidden;
800
801
  transition: height 0.45s cubic-bezier(0.32, 0.72, 0, 1), max-height 0.45s cubic-bezier(0.32, 0.72, 0, 1);
801
802
  }
802
803
  .ps-tryon-modal-tall.ps-tryon-modal-wide {
803
- height: min(88dvh, calc(55vw / 1.3));
804
- max-height: min(92dvh, calc(55vw / 1.3));
804
+ height: min(92dvh, calc(55vw / 1.2));
805
+ max-height: min(95dvh, calc(55vw / 1.2));
805
806
  }
806
807
  .ps-tryon-modal:has(.ps-tryon-drawer-open) { overflow: hidden; }
807
808
  @keyframes ps-slide-up { from { transform: translateY(12px) scale(0.97); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@@ -8119,7 +8120,13 @@ function SectionDetailView({
8119
8120
  let mc = candidates.find((i) => columnUnits[i] === wantUnit);
8120
8121
  if (mc == null) mc = candidates[0];
8121
8122
  const mHeader = section.headers[mc];
8122
- const row = section.rows.find((r) => cellValFn(r, sizeColIdx, sizeHeader) === size);
8123
+ const sizeNorm = size.trim().toLowerCase();
8124
+ let row = section.rows.find((r) => cellValFn(r, sizeColIdx, sizeHeader) === size);
8125
+ if (!row) row = section.rows.find((r) => cellValFn(r, sizeColIdx, sizeHeader).trim().toLowerCase() === sizeNorm);
8126
+ if (!row) row = section.rows.find((r) => {
8127
+ const cell = cellValFn(r, sizeColIdx, sizeHeader).trim().toLowerCase();
8128
+ return cell.startsWith(sizeNorm) || sizeNorm.startsWith(cell);
8129
+ });
8123
8130
  if (!row) return null;
8124
8131
  const val = cellValFn(row, mc, mHeader);
8125
8132
  if (!val) return null;