Commit 6e51cbad authored by ddcat1115's avatar ddcat1115

fix #948

parent cec0f45a
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
.ant-card-actions { .ant-card-actions {
background: #f7f9fa; background: #f7f9fa;
} }
.ant-list .ant-list-item-content-single {
max-width: 100%;
}
} }
.cardInfo { .cardInfo {
.clearfix(); .clearfix();
......
...@@ -25,6 +25,12 @@ ...@@ -25,6 +25,12 @@
.item { .item {
height: 64px; height: 64px;
} }
:global {
.ant-list .ant-list-item-content-single {
max-width: 100%;
}
}
} }
.extraImg { .extraImg {
......
...@@ -6,6 +6,7 @@ import { Row, Col, Form, Card, Select, List } from 'antd'; ...@@ -6,6 +6,7 @@ import { Row, Col, Form, Card, Select, List } from 'antd';
import StandardFormRow from '../../components/StandardFormRow'; import StandardFormRow from '../../components/StandardFormRow';
import TagSelect from '../../components/TagSelect'; import TagSelect from '../../components/TagSelect';
import AvatarList from '../../components/AvatarList'; import AvatarList from '../../components/AvatarList';
import Ellipsis from '../../components/Ellipsis';
import styles from './Projects.less'; import styles from './Projects.less';
...@@ -54,7 +55,7 @@ export default class CoverCardList extends PureComponent { ...@@ -54,7 +55,7 @@ export default class CoverCardList extends PureComponent {
<List <List
rowKey="id" rowKey="id"
loading={loading} loading={loading}
grid={{ gutter: 24, lg: 4, md: 3, sm: 2, xs: 1 }} grid={{ gutter: 24, xl: 4, lg: 3, md: 3, sm: 2, xs: 1 }}
dataSource={list} dataSource={list}
renderItem={item => ( renderItem={item => (
<List.Item> <List.Item>
...@@ -65,7 +66,7 @@ export default class CoverCardList extends PureComponent { ...@@ -65,7 +66,7 @@ export default class CoverCardList extends PureComponent {
> >
<Card.Meta <Card.Meta
title={<a href="#">{item.title}</a>} title={<a href="#">{item.title}</a>}
description={item.subDescription} description={<Ellipsis lines={2}>{item.subDescription}</Ellipsis>}
/> />
<div className={styles.cardItemContent}> <div className={styles.cardItemContent}>
<span>{moment(item.updatedAt).fromNow()}</span> <span>{moment(item.updatedAt).fromNow()}</span>
......
...@@ -46,4 +46,10 @@ ...@@ -46,4 +46,10 @@
.cardList { .cardList {
margin-top: 24px; margin-top: 24px;
} }
:global {
.ant-list .ant-list-item-content-single {
max-width: 100%;
}
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment