Skip to content

Commit

Permalink
Merge pull request #5319 from brave/widget-menu-fix
Browse files Browse the repository at this point in the history
Fixing widget menus going offscreen at certain viewports
  • Loading branch information
ryanml authored Apr 23, 2020
2 parents 9c3d921 + 9ee5155 commit cf42188
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const StyledWidgetMenu = styled<WidgetMenuProps, 'div'>('div')`
@media screen and (min-width: 950px) and (max-width: 1150px) {
${p => p.textDirection === 'ltr'
? 'left: 8px'
? `left: ${p.menuPosition === 'left' ? -130 : 8}px`
: 'right: 8px'}
}
Expand Down

0 comments on commit cf42188

Please sign in to comment.