@ai-matrx/design-system 0.86.362 → 0.86.363

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.86.363
4
+
5
+ - **MatrxDataTable: a row whose text runs past one line keeps a one-line row's air.** A cell that stacks or wraps text (a page title over its URL) grew the row but kept the one-line padding — 0 px in the Mac look — so the lines sat flush on both row lines. The table now marks such rows (`data-matrx-row-lines="multi"`, from the text's own line boxes, `data-table/multiline-rows.ts`) and their cells get half of (row height − one line) above and below, top-aligned, from the new root variable `--matrx-table-row-height`. One-line rows are unchanged. Guard: `a-multi-line-row-keeps-a-one-line-rows-air.test.ts`. Consumer action: none.
6
+
3
7
  ## 0.86.362
4
8
 
5
9
  - `DropdownMenuContent` / `DropdownMenuSubContent`: a CLOSED menu measures nothing — the header and
@@ -20377,6 +20377,7 @@ function cellTextIsMultiline(cell) {
20377
20377
  const minStep = Number.isFinite(lineHeight) ? lineHeight * 0.75 : 10;
20378
20378
  const walker = cell.ownerDocument.createTreeWalker(cell, NodeFilter.SHOW_TEXT);
20379
20379
  const range = cell.ownerDocument.createRange();
20380
+ if (typeof range.getClientRects !== "function") return false;
20380
20381
  let firstTop = null;
20381
20382
  for (let node = walker.nextNode(); node; node = walker.nextNode()) {
20382
20383
  if (!node.textContent?.trim()) continue;