hotfix: remove absolute position from dropdown menu
This commit is contained in:
parent
7d256e73b6
commit
becf1bc76c
|
@ -14,9 +14,8 @@ const MenuWrapper = styled.div`
|
||||||
background-image: ${props => `linear-gradient(to right, ${darken(0.005, props.theme.colors.activeItem)}, ${props.theme.colors.activeItem})`};
|
background-image: ${props => `linear-gradient(to right, ${darken(0.005, props.theme.colors.activeItem)}, ${props.theme.colors.activeItem})`};
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
position: absolute;
|
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
min-width: 200px;
|
min-width: 400px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const MenuItem = styled.button`
|
const MenuItem = styled.button`
|
||||||
|
@ -59,6 +58,7 @@ export class DropdownComponent extends Component<Props, State> {
|
||||||
return (
|
return (
|
||||||
<PopoverWithStyle
|
<PopoverWithStyle
|
||||||
isOpen={this.state.isOpen}
|
isOpen={this.state.isOpen}
|
||||||
|
place={null}
|
||||||
preferPlace='below'
|
preferPlace='below'
|
||||||
body={[
|
body={[
|
||||||
<ClickOutside onClickOutside={() => this.setState(() => ({ isOpen: false }))}>
|
<ClickOutside onClickOutside={() => this.setState(() => ({ isOpen: false }))}>
|
||||||
|
|
Loading…
Reference in New Issue