@livelayer/react 0.18.0 → 0.18.2

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/styles.css CHANGED
@@ -589,27 +589,36 @@
589
589
  }
590
590
 
591
591
  .ll-expanded--mobile {
592
- /* Mobile expanded is a thumbnail PiP9:16 portrait, ~150px wide.
593
- The visitor's website is the primary surface; the widget is a
594
- persistent reachable affordance, not the focus. Sized so it fits
595
- comfortably alongside content without blocking it.
596
-
597
- Evolution:
598
- v0: 100vw × 80dvh edge-to-edge sheet → blocked 60% of screen
599
- v0.16: 380 × 540 card → marginally smaller, still ~90% of phone width
600
- v0.17: 150 × 267 (9:16) thumbnail → properly out-of-the-way
601
-
602
- The clamp lets the card scale slightly with viewport — tiny phones
603
- (320px wide) get 140px, normal phones (393-430px) stay at the
604
- 150px sweet spot, larger phones / foldables (500px+) can grow to
605
- 180px. aspect-ratio derives height from width so the 9:16 portrait
606
- framing stays exact regardless of where in the clamp range the
607
- viewport lands. */
608
- width: clamp(140px, 38vw, 180px);
609
- aspect-ratio: 9 / 16;
592
+ /* Mobile thumbnail cardmatches the dimensions the LiveLayer
593
+ landing page uses for ExperienceForkCard's embedded preview
594
+ (components/landing/ExperienceFork.tsx the canonical reference
595
+ design the team has shipped on www.livelayer.studio). Visitors
596
+ have explicitly asked us to match it exactly so the package
597
+ behaves identically across LL's own marketing site and customer
598
+ sites.
599
+
600
+ LL demo dimensions (from ExperienceFork.tsx:36):
601
+ mobile (default): w-[160px] h-[230px] ←──┐ matched
602
+ sm+ (≥640px): w-[180px] h-[260px] ←──┘ matched
603
+
604
+ Border radius: rounded-2xl in Tailwind = 16px.
605
+
606
+ Width and height are explicit pixels (not aspect-ratio) because
607
+ the reference uses explicit pixels — preserving every detail of
608
+ the design contract. The two breakpoints match LL exactly so the
609
+ widget reads as the same component in both contexts. */
610
+ width: 160px;
611
+ height: 230px;
610
612
  border-radius: 16px;
611
613
  }
612
614
 
615
+ @media (min-width: 640px) {
616
+ .ll-expanded--mobile {
617
+ width: 180px;
618
+ height: 260px;
619
+ }
620
+ }
621
+
613
622
  /* ── Background layers ───────────────────────────────────────── */
614
623
 
615
624
  .ll-expanded__bg,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livelayer/react",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "LiveLayer agent widget for React — avatar video, team switching, responsive layouts, full-fidelity embed",
5
5
  "keywords": [
6
6
  "livelayer",