@dloizides/ui-tables 1.18.0 → 1.18.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.
- package/CHANGELOG.md +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1570,6 +1570,10 @@ function TypeaheadField({ field, barTestID, value, onChange, onSubmit, optionHin
|
|
|
1570
1570
|
}
|
|
1571
1571
|
);
|
|
1572
1572
|
}
|
|
1573
|
+
function clampedMinWidth(minWidth) {
|
|
1574
|
+
if (reactNative.Platform.OS !== "web") return minWidth;
|
|
1575
|
+
return `min(${minWidth}px, 100%)`;
|
|
1576
|
+
}
|
|
1573
1577
|
var EMPTY_RANGE = { from: "", to: "" };
|
|
1574
1578
|
var GROW_FLEX = 1;
|
|
1575
1579
|
function asString(value) {
|
|
@@ -1653,7 +1657,7 @@ function FilterFieldView({ field, barTestID, values, setField, onSubmit, strings
|
|
|
1653
1657
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1654
1658
|
uiForms.Field,
|
|
1655
1659
|
{
|
|
1656
|
-
containerStyle: [filterStyles.fieldInBar, { minWidth }, grow, field.style],
|
|
1660
|
+
containerStyle: [filterStyles.fieldInBar, { minWidth: clampedMinWidth(minWidth), maxWidth: "100%" }, grow, field.style],
|
|
1657
1661
|
label: field.label,
|
|
1658
1662
|
labelVariant: "control",
|
|
1659
1663
|
testID: field.testID ?? fieldTestID(barTestID, field.key),
|