@redseed/redseed-ui-tailwindcss 7.73.0 → 7.73.1

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.
@@ -350,12 +350,61 @@
350
350
  grid-template-columns: repeat(2, minmax(6rem, max-content));
351
351
  }
352
352
 
353
+ /* THE COUNT STEPS, it does not jump.
354
+ *
355
+ * This went straight from two columns to five at 40rem, and that gap is where every
356
+ * problem with this grid has actually lived. Between roughly 640px and 1000px, five
357
+ * columns cannot hold five real facts: an email or a location name is 180px of
358
+ * unbreakable string and the track floor is 96px, so they either wrapped to three lines
359
+ * or overlapped their neighbour, depending on which version of this rule was in force.
360
+ *
361
+ * Fixing one width at a time is what produced those versions. Three columns in the middle
362
+ * band is the missing step: at 659px that is roughly 200px a column, which holds a real
363
+ * email on one line.
364
+ *
365
+ * Measured across the range with "testlearner6@redseed.com" as the widest fact — see the
366
+ * table in PageHeaderSpacing.test.js. */
353
367
  @media (min-width: 40rem) {
368
+ .rsui-page-header__meta-region {
369
+ grid-template-columns: repeat(3, minmax(6rem, max-content));
370
+ }
371
+ }
372
+
373
+ @media (min-width: 64rem) {
354
374
  .rsui-page-header__meta-region {
355
375
  grid-template-columns: repeat(5, minmax(6rem, max-content));
356
376
  }
357
377
  }
358
378
 
379
+ /* A fact has to wrap INSIDE its own cell rather than spilling onto its neighbour.
380
+ *
381
+ * The rule above has always said so — "Anything longer wraps inside its own cell rather
382
+ * than pushing its neighbours" — but nothing enforced it, and two defaults conspire
383
+ * against it:
384
+ *
385
+ * a grid item's automatic minimum size is its MIN-CONTENT, not the track's floor, so a
386
+ * cell holding one unbreakable word refuses to shrink to the 6rem minimum;
387
+ *
388
+ * `overflow-wrap: normal` only breaks at spaces, and the values that overflow are
389
+ * exactly the ones without any — "testlearner6@redseed.com", a long location name.
390
+ *
391
+ * Together those made an email overlap the fact beside it once the header was narrow
392
+ * enough that the tracks hit their floor. Seen at 659px, where five columns of 96px fit
393
+ * but a 180px email does not.
394
+ *
395
+ * min-w-0 lets the cell shrink to the track; break-words gives the string somewhere to
396
+ * break. Scoped to the header's meta rather than applied to MetaInfo everywhere — the
397
+ * standard's sentence is about this grid, and generalising a layout fix is what caused
398
+ * the problem this is fixing. */
399
+ .rsui-page-header__meta-region .rsui-meta-info {
400
+ @apply min-w-0;
401
+ }
402
+
403
+ .rsui-page-header__meta-region .rsui-meta-info__value,
404
+ .rsui-page-header__meta-region .rsui-meta-info__label {
405
+ @apply min-w-0 break-words;
406
+ }
407
+
359
408
  .rsui-page-header__meta {
360
409
  display: contents;
361
410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-tailwindcss",
3
- "version": "7.73.0",
3
+ "version": "7.73.1",
4
4
  "description": "RedSeed UI Tailwindcss",
5
5
  "main": "index.js",
6
6
  "style": "index.css",