feat: provide default margin for dropdown menu item icon

This commit is contained in:
picodoth 2018-06-06 11:53:50 +08:00 committed by 偏右
parent a825ed4e66
commit 8e60a591fd
2 changed files with 8 additions and 3 deletions

View File

@ -28,9 +28,9 @@ function handleMenuClick(e) {
const menu = ( const menu = (
<Menu onClick={handleMenuClick}> <Menu onClick={handleMenuClick}>
<Menu.Item key="1">1st menu item</Menu.Item> <Menu.Item key="1"><Icon type="user" />1st menu item</Menu.Item>
<Menu.Item key="2">2nd menu item</Menu.Item> <Menu.Item key="2"><Icon type="user" />2nd menu item</Menu.Item>
<Menu.Item key="3">3rd item</Menu.Item> <Menu.Item key="3"><Icon type="user" />3rd item</Menu.Item>
</Menu> </Menu>
); );

View File

@ -70,6 +70,11 @@
transition: all .3s; transition: all .3s;
line-height: 22px; line-height: 22px;
> .anticon:first-child {
min-width: 12px;
margin-right: 8px;
}
> a { > a {
color: @text-color; color: @text-color;
display: block; display: block;