@livelayer/react 0.16.0 → 0.17.0
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 +26 -19
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -589,22 +589,25 @@
|
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
.ll-expanded--mobile {
|
|
592
|
-
/*
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
592
|
+
/* Mobile expanded is a thumbnail PiP — 9: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;
|
|
610
|
+
border-radius: 16px;
|
|
608
611
|
}
|
|
609
612
|
|
|
610
613
|
/* ── Background layers ───────────────────────────────────────── */
|
|
@@ -1548,9 +1551,13 @@
|
|
|
1548
1551
|
}
|
|
1549
1552
|
|
|
1550
1553
|
.ll-expanded--mobile .ll-expanded__pip {
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
+
/* Scaled down to fit the 0.17.0 mobile thumbnail card (~150px
|
|
1555
|
+
wide). A 96px PiP in a 150px card would cover nearly the entire
|
|
1556
|
+
surface during a call — defeats the point of the PiP. 48×36 is
|
|
1557
|
+
readable as "your camera preview" at the card scale. */
|
|
1558
|
+
right: 8px;
|
|
1559
|
+
width: 48px;
|
|
1560
|
+
height: 36px;
|
|
1554
1561
|
}
|
|
1555
1562
|
|
|
1556
1563
|
/* ── Error boundary fallback ─────────────────────────────────── */
|