Skip to content

Commit

Permalink
replace translate with margin
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Dec 9, 2023
1 parent 632c5c6 commit ebe070f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export default (isSmallScreenWidth: boolean, themeStyles: ThemeStyles): ScreenOp
...getNavigationModalCardStyle(),
width: isSmallScreenWidth ? '100%' : variables.sideBarWidth,

// We need to translate the sidebar to not be covered by the StackNavigator so it can be clickable.
transform: [{translateX: isSmallScreenWidth ? 0 : -variables.sideBarWidth}],
// We need to shift the sidebar to not be covered by the StackNavigator so it can be clickable.
marginLeft: isSmallScreenWidth ? 0 : -variables.sideBarWidth,
...(isSmallScreenWidth ? {} : themeStyles.borderRight),
},
},
Expand Down

0 comments on commit ebe070f

Please sign in to comment.