File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed
src/dashboards/components Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,48 @@ $dashboard-grid-gap: $cf-marg-a;
1818}
1919
2020.dashboards-card-grid {
21+ padding-bottom : $cf-marg-d ;
22+ display : grid ;
23+ grid-template-columns : minmax (100% , 1fr );
24+ grid-auto-rows : $cf-space-3xl + $cf-space-3xl + $cf-space-m ;
25+ grid-column-gap : $dashboard-grid-gap ;
26+ grid-row-gap : $dashboard-grid-gap ;
27+ height : 100% ;
28+ width : 100% ;
29+
30+ .cf-resource-card {
31+ display : flex ;
32+ margin-bottom : 0 ;
33+ }
34+
35+ .cf-resource-card--contents {
36+ position : relative ;
37+ }
38+
39+ .cf-resource-editable-name {
40+ max-width : 80% ;
41+
42+ .cf-resource-name--text {
43+ text-overflow : ellipsis ;
44+ overflow : hidden ;
45+ display : -webkit-box ;
46+ -webkit-line-clamp : 2 ;
47+ -webkit-box-orient : vertical ;
48+ }
49+ }
50+ .cf-resource-editable-name__editing {
51+ .cf-resource-name--text {
52+ display : none !important ;
53+ }
54+ }
55+
56+ .cf-resource-description ,
57+ .cf-resource-description--preview ,
58+ #text {
59+ max-width : 496px ;
60+ flex : 1 0 30px ;
61+ overflow : hidden ;
62+ }
2163}
2264
2365$dashboard-card-half : calc (50% - #{$dashboard-grid-gap } );
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ class DashboardCards extends PureComponent<OwnProps & StateProps> {
128128 const { windowSize, pages, pinnedItems} = this . state
129129
130130 return (
131- < div style = { { height : '100%' , display : 'grid' } } >
131+ < div style = { { height : '100%' } } >
132132 < div className = "dashboards-card-grid" >
133133 { sortedDashboards
134134 . filter ( d => d . status === RemoteDataState . Done )
You can’t perform that action at this time.
0 commit comments