Skip to content

Commit

Permalink
fix: search bar (#460)
Browse files Browse the repository at this point in the history
* fix: search bar

* fix: serach bar

* fix: search bar
  • Loading branch information
SUNNYKUMAR1232 committed Sep 14, 2023
1 parent 4332d5e commit 05e8eac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions client/src/components/marginals/DesktopNavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ const useStyles = makeStyles((theme) => ({
searchField: {
width: '100%',
color: theme.palette.primary.blue50,
paddingBottom: '0px',
'& input': {
paddingLeft: '20px',
},
},
trendingArticles: {
position: 'absoulte',
Expand All @@ -254,18 +256,18 @@ const useStyles = makeStyles((theme) => ({
position: 'absolute',
background: '#FEFEFF',
width: '100%',
padding: '20px',
zIndex: '20022',
borderRadius: '0px 0px 5px 5px',
border: '1px #ECEDEC',
borderStyle: 'none solid solid',
boxShadow: '0px 0px 5px grey',
display: (_) => (_.isSearchActive ? 'block' : 'none'),
paddingLeft: '20px',
},
trendingList: {
fontFamily: theme.typography.fontFamily,
alignItems: 'center',
paddingBottom: '8px',
paddingBottom: '12px',
paddingTop: '8px',
cursor: 'pointer',
},
Expand Down
8 changes: 5 additions & 3 deletions client/src/components/marginals/MobileNavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ const useStyles = makeStyles((theme) => ({
searchField: {
width: '100%',
color: theme.palette.primary.blue50,
paddingBottom: '0px',
'& input': {
paddingLeft: '20px',
},
},
trendingArticles: {
position: 'absoulte',
Expand All @@ -301,18 +303,18 @@ const useStyles = makeStyles((theme) => ({
position: 'absolute',
background: '#FEFEFF',
width: '100%',
padding: '20px',
zIndex: '20022',
borderRadius: '0px 0px 5px 5px',
border: '1px #ECEDEC',
borderStyle: 'none solid solid',
boxShadow: '0px 0px 5px grey',
display: (_) => (_.isSearchActive ? 'block' : 'none'),
paddingLeft: '20px',
},
trendingList: {
fontFamily: theme.typography.fontFamily,
alignItems: 'center',
paddingBottom: '8px',
paddingBottom: '12px',
paddingTop: '8px',
cursor: 'pointer',
},
Expand Down

0 comments on commit 05e8eac

Please sign in to comment.