@ai-matrx/design-system 0.20.11 → 0.20.12

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.
@@ -1039,7 +1039,7 @@ function TableSearch({ value, onChange, scope, onScopeChange, scopes, placeholde
1039
1039
  }, children: /* @__PURE__ */ jsx13(X, { "aria-hidden": "true", className: "h-3.5 w-3.5" }) }) }),
1040
1040
  /* @__PURE__ */ jsx13(TooltipContent, { children: "Clear search" })
1041
1041
  ] }) : null,
1042
- expanded ? /* @__PURE__ */ jsx13("div", { role: "group", "aria-label": "Search fields", className: "flex max-w-[60%] shrink-0 items-center overflow-x-auto", children: scopes.map((option) => /* @__PURE__ */ jsx13("button", { type: "button", "aria-pressed": scope === option.id, className: "flex h-11 shrink-0 items-center justify-center px-1 text-xs", onClick: () => onScopeChange(option.id), children: /* @__PURE__ */ jsx13("span", { className: scope === option.id ? "rounded-full bg-primary px-2 py-1 text-primary-foreground" : "rounded-full px-2 py-1 text-muted-foreground hover:bg-muted", children: option.label }) }, option.id)) }) : null
1042
+ expanded ? /* @__PURE__ */ jsx13("div", { role: "group", "aria-label": "Search fields", className: "flex shrink-0 items-center overflow-x-auto", style: { maxWidth: "min(60%, max(0px, calc(100% - 12rem)))" }, children: scopes.map((option) => /* @__PURE__ */ jsx13("button", { type: "button", "aria-pressed": scope === option.id, className: "flex h-11 shrink-0 items-center justify-center px-1 text-xs", onClick: () => onScopeChange(option.id), children: /* @__PURE__ */ jsx13("span", { className: scope === option.id ? "rounded-full bg-primary px-2 py-1 text-primary-foreground" : "rounded-full px-2 py-1 text-muted-foreground hover:bg-muted", children: option.label }) }, option.id)) }) : null
1043
1043
  ]
1044
1044
  }
1045
1045
  ) });