Skip to content

Commit

Permalink
fix top elements aligment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Oct 5, 2023
1 parent 4c056fa commit a6ad209
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/sidebar/GlobalNavigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function GlobalNavigation() {
return (
<View style={[styles.ph5, styles.pv3, styles.alignItemsCenter, styles.h100, styles.globalNavigation]}>
<SignInOrAvatarWithOptionalStatus />
<View style={styles.mt4}>
<View style={styles.globalNavigationMenuContainer}>
{_.map(items, (item) => (
<GlobalNavigationMenuItem
key={item.value}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function SidebarLinks({onLinkClick, insets, optionListItems, isLoading, priority
return (
<View style={[styles.flex1, styles.h100]}>
<View
style={[styles.flexRow, styles.ph5, styles.pb4, styles.pt6, styles.justifyContentBetween, styles.alignItemsCenter]}
style={styles.sidebarHeaderContainer}
dataSet={{dragArea: true}}
>
<Header
Expand Down
12 changes: 12 additions & 0 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,14 @@ const styles = (theme) => ({
height: '100%',
},

sidebarHeaderContainer: {
flexDirection: 'row',
paddingHorizontal: 20,
paddingVertical: 19,
justifyContent: 'space-between',
alignItems: 'center',
},

subNavigationContainer: {
backgroundColor: theme.sidebar,
flex: 1,
Expand Down Expand Up @@ -3722,6 +3730,10 @@ const styles = (theme) => ({
backgroundColor: theme.highlightBG,
},

globalNavigationMenuContainer: {
marginTop: 13,
},

globalAndSubNavigationContainer: {
backgroundColor: theme.highlightBG,
},
Expand Down

0 comments on commit a6ad209

Please sign in to comment.