@xapp/form-widget 1.107.3 → 1.107.5

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -1531,9 +1531,24 @@
1531
1531
  outline-offset: 0px;
1532
1532
  }
1533
1533
 
1534
+ /* Caps, not fixed sizes.
1535
+ *
1536
+ * These used to set `width` in pixels, derived from the VIEWPORT, which says
1537
+ * nothing about the container the widget was actually put in. Anywhere
1538
+ * narrower -- get.xapp.ai embeds the form in a ~548px frame -- it rendered at
1539
+ * 740px and spilled out, clipped and silent. Narrowing the browser looked like
1540
+ * a fix and was not: a smaller viewport merely picked a smaller fixed width
1541
+ * that happened to fit. #1687.
1542
+ *
1543
+ * A cap leaves every existing embed exactly as wide as it is today wherever
1544
+ * there is room, and lets the widget shrink where there is not. Its own
1545
+ * date/time layout is flex-wrap: wrap, so it stacks unaided once two columns
1546
+ * no longer fit.
1547
+ */
1534
1548
  @media (min-width: 1201px) {
1535
1549
  .FormWidget-module_xapp_form_widget__V-G-H {
1536
- width: 740px;
1550
+ width: 100%;
1551
+ max-width: 740px;
1537
1552
  /*
1538
1553
  &__content {
1539
1554
  width: 740px;
@@ -1542,7 +1557,8 @@
1542
1557
  }
1543
1558
  @media (min-width: 992px) and (max-width: 1200px) {
1544
1559
  .FormWidget-module_xapp_form_widget__V-G-H {
1545
- width: 600px;
1560
+ width: 100%;
1561
+ max-width: 600px;
1546
1562
  /* &__content {
1547
1563
  width: 600px;
1548
1564
  } */
@@ -1550,7 +1566,8 @@
1550
1566
  }
1551
1567
  @media (min-width: 641px) and (max-width: 991px) {
1552
1568
  .FormWidget-module_xapp_form_widget__V-G-H {
1553
- width: 500px;
1569
+ width: 100%;
1570
+ max-width: 500px;
1554
1571
  /* &__content {
1555
1572
  width: 500px;
1556
1573
  } */