Web: Fixed DropDown component width

This commit is contained in:
Ilya Oleshko 2019-06-24 17:04:35 +03:00
parent 8632431927
commit 81a9cbb72c
2 changed files with 2 additions and 7 deletions

View File

@ -12,12 +12,12 @@ storiesOf('Components| DropDown', module)
.add('base', () => (
<Container>
<Row style={rowStyle}>
<Col xs="2">Only dropdown</Col>
<Col xs="4">Only dropdown</Col>
<Col xs="2"/>
<Col>With Button</Col>
</Row>
<Row style={rowStyle}>
<Col xs="2">
<Col xs="4">
Without active button
<DropDown opened={true}>
<DropDownItem

View File

@ -14,7 +14,6 @@ const StyledDropdown = styled.div`
left: 0;
z-index: 1000;
margin-top: 0px;
width:100%;
display: ${props => (props.isOpen || props.opened ? 'block' : 'none')};
border-radius: 6px;
-moz-border-radius: 6px;
@ -35,8 +34,4 @@ const DropDown = props => {
);
};
DropDown.propTypes ={
};
export default DropDown