@asksable/site-connector 0.6.14 → 0.6.15

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.
Files changed (2) hide show
  1. package/dist/styles.css +21 -10
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -2727,15 +2727,19 @@
2727
2727
  @media (max-width: 1024px) {
2728
2728
  /* Lock the frame to a single height across all steps so the widget
2729
2729
  doesn't bounce as the user moves between services / date / etc.
2730
- Sized to feel like a mobile app panel: the footer sits near the
2731
- viewport bottom on tall phones, while the body scrolls internally
2732
- when a step exceeds it. */
2730
+ Host pages with their own header can set --bw-mobile-viewport-offset
2731
+ so the header + booking frame fit inside the visible viewport. */
2733
2732
  .bw {
2734
- /* svh (small viewport height) doesn't jump when iOS Safari's URL
2735
- bar toggles, unlike vh which uses the largest possible height
2736
- and overflows when bars become visible. */
2737
- min-height: 92svh;
2738
- max-height: 92svh;
2733
+ /* svh is the fallback for browsers without dvh support. */
2734
+ min-height: max(0px, calc(100svh - var(--bw-mobile-viewport-offset, 0px)));
2735
+ max-height: max(0px, calc(100svh - var(--bw-mobile-viewport-offset, 0px)));
2736
+ }
2737
+
2738
+ @supports (height: 100dvh) {
2739
+ .bw {
2740
+ min-height: max(0px, calc(100dvh - var(--bw-mobile-viewport-offset, 0px)));
2741
+ max-height: max(0px, calc(100dvh - var(--bw-mobile-viewport-offset, 0px)));
2742
+ }
2739
2743
  }
2740
2744
 
2741
2745
  /* Lock header/footer in the column so they never shrink under
@@ -2768,8 +2772,15 @@
2768
2772
  }
2769
2773
 
2770
2774
  .bw-placeholder {
2771
- min-height: 92svh;
2772
- max-height: 92svh;
2775
+ min-height: max(0px, calc(100svh - var(--bw-mobile-viewport-offset, 0px)));
2776
+ max-height: max(0px, calc(100svh - var(--bw-mobile-viewport-offset, 0px)));
2777
+ }
2778
+
2779
+ @supports (height: 100dvh) {
2780
+ .bw-placeholder {
2781
+ min-height: max(0px, calc(100dvh - var(--bw-mobile-viewport-offset, 0px)));
2782
+ max-height: max(0px, calc(100dvh - var(--bw-mobile-viewport-offset, 0px)));
2783
+ }
2773
2784
  }
2774
2785
 
2775
2786
  .bw-placeholder-header {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asksable/site-connector",
3
- "version": "0.6.14",
3
+ "version": "0.6.15",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [