Skip to content

Commit 7197609

Browse files
dropdown item width changed.
1 parent 816bc4d commit 7197609

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class App extends Component {
170170
<Dropdown
171171
items={[
172172
'asdasd',
173-
'asdasdasd',
173+
'Lorem ipsum dolor sit amet.',
174174
]}
175175
buttonProps={{
176176
text: 'Boşu Boşuna'

src/Dropdown/Dropdown.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
position: relative;
33
}
44
.rce-dropdown {
5+
min-width: 100%;
6+
box-sizing: border-box;
57
padding: 5px 10px;
68
background: #f5f5f5;
79
border-radius: 5px;
@@ -68,12 +70,12 @@
6870
flex-direction: column;
6971
align-items: center;
7072
justify-content: center;
71-
text-align: center;
7273
}
7374

7475
.rce-dropdown ul li {
76+
white-space: nowrap;
7577
color: #767676;
76-
padding: 5px 30px;
78+
padding: 5px;
7779
cursor: pointer;
7880
font-size: 14px;
7981
width: 100%;

src/Dropdown/Dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class Dropdown extends Component {
1515
}
1616

1717
onBlur(e) {
18-
if (this.state.show === true)
19-
this.setState({show: false});
18+
// if (this.state.show === true)
19+
// this.setState({show: false});
2020
}
2121

2222
render() {

0 commit comments

Comments
 (0)