Skip to content

Commit 7f49c46

Browse files
committed
Update
Signed-off-by: vr-varad <[email protected]>
1 parent 65208fe commit 7f49c46

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/custom/UniversalFilter.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,20 @@ function UniversalFilter({
6767
};
6868

6969
const renderFilterContent = () => (
70-
<div style={{ padding: '1rem', width: isMobile ? '90vw' : 'auto' }}>
71-
<h3>Filters: </h3>
70+
<div>
71+
<div
72+
style={{
73+
backgroundColor: '#507d91',
74+
padding: '0.75rem 1rem',
75+
margin: '-1rem -1rem 1rem -1rem',
76+
display: 'flex',
77+
justifyContent: 'space-between',
78+
alignItems: 'center',
79+
color: 'white'
80+
}}
81+
>
82+
<h3>Filters: </h3>
83+
</div>
7284
{Object.keys(filters).map((filterColumn) => {
7385
const options = filters[filterColumn].options;
7486
return (
@@ -143,7 +155,7 @@ function UniversalFilter({
143155
open={open}
144156
onClose={handleClose}
145157
PaperProps={{
146-
style: { borderTopLeftRadius: '1rem', borderTopRightRadius: '1rem' }
158+
style: { padding: '0 1rem 1rem 1rem' }
147159
}}
148160
>
149161
{renderFilterContent()}

0 commit comments

Comments
 (0)