Feat: Filters UI

This commit is contained in:
Aryaman Kumar Sharma
2025-04-11 12:26:59 +05:30
parent b2f6850b81
commit 4c2de647e6
2 changed files with 8 additions and 2 deletions

View File

@@ -57,6 +57,14 @@ const FilterHeader = ({ header, options, value, onChange, multiple = true }) =>
horizontal: "left",
},
}}
sx={{
"& .MuiOutlinedInput-input": {
paddingLeft: theme.spacing(14),
},
"& .MuiSelect-icon": {
left: theme.spacing(4),
},
}}
>
{options.map((option) => (
<MenuItem

View File

@@ -477,7 +477,6 @@ const baseTheme = (palette) => ({
root: ({ theme }) => ({
"& .MuiOutlinedInput-input": {
color: theme.palette.primary.contrastText,
paddingLeft: theme.spacing(14),
},
"& .MuiOutlinedInput-notchedOutline": {
borderColor: theme.palette.primary.lowContrast,
@@ -485,7 +484,6 @@ const baseTheme = (palette) => ({
},
"& .MuiSelect-icon": {
color: theme.palette.primary.contrastTextSecondary, // Dropdown + color
left: theme.spacing(4),
},
"&:hover": {
backgroundColor: theme.palette.primary.main, // Background on hover