Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nikogu committed Oct 12, 2017
1 parent 48847e1 commit 57d5038
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
5 changes: 2 additions & 3 deletions components/list/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ export default class Item extends React.Component<ListItemProps, any> {
const contentClassString = classNames(`${prefixCls}-item-content`, {
[`${prefixCls}-item-content-single`]: (metaContent.length < 1),
});
const content = (
const content = otherContent.length > 0 ? (
<div className={contentClassString}>
{otherContent}
</div>
);
</div>) : null;

let actionsContent;
if (actions && actions.length > 0) {
Expand Down
12 changes: 0 additions & 12 deletions components/list/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
</div>
</div>
</div>
<div
class="ant-list-item-content"
/>
</div>
<div
class="ant-list-item"
Expand Down Expand Up @@ -81,9 +78,6 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
</div>
</div>
</div>
<div
class="ant-list-item-content"
/>
</div>
<div
class="ant-list-item"
Expand Down Expand Up @@ -121,9 +115,6 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
</div>
</div>
</div>
<div
class="ant-list-item-content"
/>
</div>
<div
class="ant-list-item"
Expand Down Expand Up @@ -161,9 +152,6 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
</div>
</div>
</div>
<div
class="ant-list-item-content"
/>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/list/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
padding-top: 12px;
padding-bottom: 12px;
&-meta {
align-items: center;
align-items: flex-start;
display: flex;
font-size: 0;
&-avatar {
Expand Down

0 comments on commit 57d5038

Please sign in to comment.