@megha-ui/react 1.3.83 → 1.3.84

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.
@@ -314,12 +314,9 @@ const GridHeader = ({ columns, onSearch, searchQueries, sortable, search, resiza
314
314
  const spaceBelow = Math.max(0, Math.floor(rawSpaceBelow));
315
315
  const spaceAbove = Math.max(0, Math.floor(rawSpaceAbove));
316
316
  const available = Math.max(spaceBelow, spaceAbove);
317
- // If there is no positive available space detected (e.g. due to
318
- // rounding or container calculations), fall back to the preferred
319
- // max height instead of collapsing the list to 0.
320
- const resolvedMax = available > 0
321
- ? Math.min(available, preferredMaxHeight)
322
- : preferredMaxHeight;
317
+ // Use all available space when positive; only fall back to a
318
+ // sensible default when the calculation yields no usable space.
319
+ const resolvedMax = available > 0 ? available : preferredMaxHeight;
323
320
  setActiveSearchMaxHeight(resolvedMax);
324
321
  };
325
322
  if (activeSearchColumn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.3.83",
3
+ "version": "1.3.84",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",