Web: Fixed DropDown component width
This commit is contained in:
parent
8632431927
commit
81a9cbb72c
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user