@ai-matrx/records-ui 0.93.86 → 0.93.87

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/index.js CHANGED
@@ -31541,9 +31541,9 @@ function toolbarFold(input) {
31541
31541
  if (fits >= 0) return stages[fits];
31542
31542
  const least = Math.min(...needs);
31543
31543
  const most = stages[needs.findIndex((need) => need <= least + 0.5)];
31544
- if (most < 3 || !input.tools || !input.share) return most;
31544
+ if (!input.tools || !input.share) return most;
31545
31545
  const fixed = pieces.reduce((sum, p) => sum + withGap(p.stage === 3 ? SLOT_MIN : widthAt(p, 3)), base + shareOn);
31546
- return fixed > available + 0.5 ? 4 : 3;
31546
+ return fixed > available + 0.5 ? 4 : most;
31547
31547
  }
31548
31548
  function naturalWidth(el) {
31549
31549
  const html = el;
@@ -31566,7 +31566,7 @@ function rowNeeds(row) {
31566
31566
  const innerStyle = typeof getComputedStyle === "undefined" ? null : getComputedStyle(piece);
31567
31567
  const innerGap = innerStyle ? parseFloat(innerStyle.columnGap || "0") || 0 : 0;
31568
31568
  needs += inner.reduce((sum, c) => sum + naturalWidth(c), 0) + innerGap * Math.max(0, inner.length - 1);
31569
- } else {
31569
+ } else if (!piece.hasAttribute("data-toolbar-fit-gives")) {
31570
31570
  needs += naturalWidth(piece);
31571
31571
  }
31572
31572
  }
@@ -32438,7 +32438,7 @@ function TablePage({
32438
32438
  ] }) }) : !lookShowing && main === "records" && view && !phone && !controlsInSheet ? (
32439
32439
  /* The reserved place gives way first when the row is narrow (a chat artifact, the
32440
32440
  smallest window): it holds nothing, so it shrinks before a real control is cut. */
32441
- /* @__PURE__ */ jsx105("span", { "aria-hidden": "true", className: "invisible flex min-w-0 shrink items-center overflow-hidden", "data-view-look-place": "", children: /* @__PURE__ */ jsxs95(Button80, { size: "sm", variant: "outline", className: "h-8 gap-1.5 px-2 text-xs", tabIndex: -1, children: [
32441
+ /* @__PURE__ */ jsx105("span", { "aria-hidden": "true", className: "invisible flex min-w-0 shrink items-center overflow-hidden", "data-view-look-place": "", "data-toolbar-fit-gives": "", children: /* @__PURE__ */ jsxs95(Button80, { size: "sm", variant: "outline", className: "h-8 gap-1.5 px-2 text-xs", tabIndex: -1, children: [
32442
32442
  /* @__PURE__ */ jsx105("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full" }),
32443
32443
  LOOK_WORDS.folded
32444
32444
  ] }) })