Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
6e51cbad
Commit
6e51cbad
authored
Feb 26, 2018
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #948
parent
cec0f45a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
src/routes/List/Applications.less
src/routes/List/Applications.less
+3
-0
src/routes/List/CardList.less
src/routes/List/CardList.less
+6
-0
src/routes/List/Projects.js
src/routes/List/Projects.js
+3
-2
src/routes/List/Projects.less
src/routes/List/Projects.less
+6
-0
No files found.
src/routes/List/Applications.less
View file @
6e51cbad
...
@@ -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();
...
...
src/routes/List/CardList.less
View file @
6e51cbad
...
@@ -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 {
...
...
src/routes/List/Projects.js
View file @
6e51cbad
...
@@ -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
>
...
...
src/routes/List/Projects.less
View file @
6e51cbad
...
@@ -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%;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment