@@ -4,7 +4,7 @@ import { Helmet } from 'react-helmet';
4
4
import { connect } from 'react-redux' ;
5
5
import { bindActionCreators } from 'redux' ;
6
6
import { withTranslation } from 'react-i18next' ;
7
-
7
+ import styled from 'styled-components' ;
8
8
import * as ProjectActions from '../actions/project' ;
9
9
import * as ProjectsActions from '../actions/projects' ;
10
10
import * as CollectionsActions from '../actions/collections' ;
@@ -13,10 +13,26 @@ import * as SortingActions from '../actions/sorting';
13
13
import getSortedCollections from '../selectors/collections' ;
14
14
import Loader from '../../App/components/loader' ;
15
15
import QuickAddList from './QuickAddList' ;
16
+ import { remSize } from '../../../theme' ;
16
17
17
18
const projectInCollection = ( project , collection ) =>
18
19
collection . items . find ( ( item ) => item . projectId === project . id ) != null ;
19
20
21
+ const CollectionAddSketchWrapper = styled . div `
22
+ &&& {
23
+ min-width: ${ remSize ( 600 ) } ;
24
+ overflow: auto;
25
+ }
26
+ ` ;
27
+
28
+ const QuickAddWrapper = styled . div `
29
+ &&& {
30
+ min-width: ${ remSize ( 600 ) } ;
31
+ padding: ${ remSize ( 24 ) } ;
32
+ height: 100%;
33
+ }
34
+ ` ;
35
+
20
36
class CollectionList extends React . Component {
21
37
constructor ( props ) {
22
38
super ( props ) ;
@@ -85,15 +101,15 @@ class CollectionList extends React.Component {
85
101
}
86
102
87
103
return (
88
- < div className = "collection-add-sketch" >
89
- < div className = "quick-add-wrapper" >
104
+ < CollectionAddSketchWrapper >
105
+ < QuickAddWrapper >
90
106
< Helmet >
91
107
< title > { this . getTitle ( ) } </ title >
92
108
</ Helmet >
93
109
94
110
{ content }
95
- </ div >
96
- </ div >
111
+ </ QuickAddWrapper >
112
+ </ CollectionAddSketchWrapper >
97
113
) ;
98
114
}
99
115
}
0 commit comments