Skip to content

Commit

Permalink
fix search bar margin/padding on mobile (#24169)
Browse files Browse the repository at this point in the history
* fix search bar margin/padding on mobile

* mobile only style, shots

* bring back
  • Loading branch information
joshblum committed May 18, 2020
1 parent 7cbf202 commit 0cf4fdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shared/profile/search/bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ProfileSearch = (props: Props) => {
placeholderColor={color}
placeholderText={`Search${Styles.isMobile ? '' : ' people'}`}
size="full-width"
style={Styles.collapseStyles([styles.filter, props.style])}
style={Styles.collapseStyles([Styles.isMobile ? styles.filterMobile : styles.filter, props.style])}
/>
)
}
Expand All @@ -33,6 +33,10 @@ const styles = Styles.styleSheetCreate(() => ({
marginLeft: Styles.globalMargins.xsmall,
marginRight: Styles.globalMargins.xsmall,
},
filterMobile: {
paddingLeft: 0,
paddingRight: 0,
},
}))

export default ProfileSearch

0 comments on commit 0cf4fdb

Please sign in to comment.