Skip to content

Commit 05e8eac

Browse files
fix: search bar (#460)
* fix: search bar * fix: serach bar * fix: search bar
1 parent 4332d5e commit 05e8eac

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

client/src/components/marginals/DesktopNavbar.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ const useStyles = makeStyles((theme) => ({
234234
searchField: {
235235
width: '100%',
236236
color: theme.palette.primary.blue50,
237-
paddingBottom: '0px',
237+
'& input': {
238+
paddingLeft: '20px',
239+
},
238240
},
239241
trendingArticles: {
240242
position: 'absoulte',
@@ -254,18 +256,18 @@ const useStyles = makeStyles((theme) => ({
254256
position: 'absolute',
255257
background: '#FEFEFF',
256258
width: '100%',
257-
padding: '20px',
258259
zIndex: '20022',
259260
borderRadius: '0px 0px 5px 5px',
260261
border: '1px #ECEDEC',
261262
borderStyle: 'none solid solid',
262263
boxShadow: '0px 0px 5px grey',
263264
display: (_) => (_.isSearchActive ? 'block' : 'none'),
265+
paddingLeft: '20px',
264266
},
265267
trendingList: {
266268
fontFamily: theme.typography.fontFamily,
267269
alignItems: 'center',
268-
paddingBottom: '8px',
270+
paddingBottom: '12px',
269271
paddingTop: '8px',
270272
cursor: 'pointer',
271273
},

client/src/components/marginals/MobileNavbar.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ const useStyles = makeStyles((theme) => ({
278278
searchField: {
279279
width: '100%',
280280
color: theme.palette.primary.blue50,
281-
paddingBottom: '0px',
281+
'& input': {
282+
paddingLeft: '20px',
283+
},
282284
},
283285
trendingArticles: {
284286
position: 'absoulte',
@@ -301,18 +303,18 @@ const useStyles = makeStyles((theme) => ({
301303
position: 'absolute',
302304
background: '#FEFEFF',
303305
width: '100%',
304-
padding: '20px',
305306
zIndex: '20022',
306307
borderRadius: '0px 0px 5px 5px',
307308
border: '1px #ECEDEC',
308309
borderStyle: 'none solid solid',
309310
boxShadow: '0px 0px 5px grey',
310311
display: (_) => (_.isSearchActive ? 'block' : 'none'),
312+
paddingLeft: '20px',
311313
},
312314
trendingList: {
313315
fontFamily: theme.typography.fontFamily,
314316
alignItems: 'center',
315-
paddingBottom: '8px',
317+
paddingBottom: '12px',
316318
paddingTop: '8px',
317319
cursor: 'pointer',
318320
},

0 commit comments

Comments
 (0)