Tweak list grid margin

This commit is contained in:
afc163 2018-04-13 15:28:31 +08:00
parent 2939aea4ec
commit 92eeb7f8c9
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ export default class List extends React.Component<ListProps> {
);
let childrenContent;
childrenContent = isLoading && (<div style={{ minHeight: 53 }} />);
childrenContent = isLoading && <div style={{ minHeight: 53 }} />;
if (dataSource.length > 0) {
const items = dataSource.map((item: any, index: number) => this.renderItem(item, index));
const childrenList = React.Children.map(items, (child: any, index) => React.cloneElement(child, {

View File

@ -196,7 +196,7 @@
border-bottom: none;
padding-top: 0;
padding-bottom: 0;
margin-bottom: 20px;
margin-bottom: 16px;
&-content {
display: block;
}