Skip to content

Commit

Permalink
Increase the gap between fab and menu
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Dec 1, 2023
1 parent 83478a0 commit 15e50b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1395,9 +1395,9 @@ const styles = (theme: ThemeColors) =>
createMenuPositionSidebar: (windowHeight: number) =>
({
horizontal: 18,
// Menu should be displayed 10px above the floating action button.
// To achieve that sidebar must be moved by: distance from the bottom of the sidebar to the fab (variables.fabBottom) + fab height (variables.componentSizeLarge) + distance above the fab (10px)
vertical: windowHeight - (variables.fabBottom + variables.componentSizeLarge + 10),
// Menu should be displayed 12px above the floating action button.
// To achieve that sidebar must be moved by: distance from the bottom of the sidebar to the fab (variables.fabBottom) + fab height (variables.componentSizeLarge) + distance above the fab (12px)
vertical: windowHeight - (variables.fabBottom + variables.componentSizeLarge + 12),
} satisfies AnchorPosition),

createMenuPositionProfile: (windowWidth: number) =>
Expand Down

0 comments on commit 15e50b4

Please sign in to comment.