diff --git a/react-openapi/components/FilterBar.tsx b/react-openapi/components/FilterBar.tsx
index 7bed711..5e1a12d 100644
--- a/react-openapi/components/FilterBar.tsx
+++ b/react-openapi/components/FilterBar.tsx
@@ -71,26 +71,11 @@ function renderFilterInput(
if (filterType === "number-range") {
const rangeVal = (value as { min?: string; max?: string }) || {};
return (
-
-
- {field.label}
-
- onChange("min", e.target.value || undefined)}
- sx={{ width: 120 }}
- />
- onChange("max", e.target.value || undefined)}
- sx={{ width: 120 }}
- />
+
+ onChange("min", e.target.value || undefined)} sx={{ width: 100 }} />
+ onChange("max", e.target.value || undefined)} sx={{ width: 100 }} />
);
}
@@ -98,64 +83,25 @@ function renderFilterInput(
if (filterType === "date-range") {
const rangeVal = (value as { start?: string; end?: string }) || {};
return (
-
-
- {field.label}
-
- onChange("start", e.target.value || undefined)}
- InputLabelProps={{ shrink: true }}
- sx={{ width: 190 }}
- />
- onChange("end", e.target.value || undefined)}
- InputLabelProps={{ shrink: true }}
- sx={{ width: 190 }}
- />
+
+ onChange("start", e.target.value || undefined)} InputLabelProps={{ shrink: true }} sx={{ width: 170 }} />
+ onChange("end", e.target.value || undefined)} InputLabelProps={{ shrink: true }} sx={{ width: 170 }} />
);
}
- if (filterType === "multiselect") {
- const selected = Array.isArray(value) ? value : [];
- return (
- onChange("value", val.length > 0 ? val : undefined)}
- renderInput={(params) => (
-
- )}
- sx={{ minWidth: 220 }}
- size="small"
- />
- );
- }
-
const selected = Array.isArray(value) ? value : [];
return (
onChange("value", val.length > 0 ? val : undefined)}
- ChipProps={{ size: 'small' }}
- renderInput={(params) => (
-
- )}
- sx={{ minWidth: 220 }}
- size="small"
+ renderInput={(params) => }
+ sx={{ '& .MuiOutlinedInput-root': { height: 'auto', minHeight: '2.5rem', py: 0.5 } }}
/>
);
}
@@ -249,20 +195,23 @@ export default function FilterBar({
const raw = draft[fieldName];
return (
-
+
+
+ {field.label}
+
{renderFilterInput(fieldName, field, options, raw, (key, val) =>
updateDraft(fieldName, key, val)
)}
-
+
);
})}
-