Commit 6e51cbad authored by ddcat1115's avatar ddcat1115

fix #948

parent cec0f45a
......@@ -14,6 +14,9 @@
.ant-card-actions {
background: #f7f9fa;
}
.ant-list .ant-list-item-content-single {
max-width: 100%;
}
}
.cardInfo {
.clearfix();
......
......@@ -25,6 +25,12 @@
.item {
height: 64px;
}
:global {
.ant-list .ant-list-item-content-single {
max-width: 100%;
}
}
}
.extraImg {
......
......@@ -6,6 +6,7 @@ import { Row, Col, Form, Card, Select, List } from 'antd';
import StandardFormRow from '../../components/StandardFormRow';
import TagSelect from '../../components/TagSelect';
import AvatarList from '../../components/AvatarList';
import Ellipsis from '../../components/Ellipsis';
import styles from './Projects.less';
......@@ -54,7 +55,7 @@ export default class CoverCardList extends PureComponent {
<List
rowKey="id"
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}
renderItem={item => (
<List.Item>
......@@ -65,7 +66,7 @@ export default class CoverCardList extends PureComponent {
>
<Card.Meta
title={<a href="#">{item.title}</a>}
description={item.subDescription}
description={<Ellipsis lines={2}>{item.subDescription}</Ellipsis>}
/>
<div className={styles.cardItemContent}>
<span>{moment(item.updatedAt).fromNow()}</span>
......
......@@ -46,4 +46,10 @@
.cardList {
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