@@ -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,24 @@ 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
+ export const CollectionAddSketchWrapper = styled . div `
22
+ width: ${ remSize ( 600 ) } ;
23
+ max-width: 100%;
24
+ overflow: auto;
25
+ ` ;
26
+
27
+ export const QuickAddWrapper = styled . div `
28
+ width: ${ remSize ( 600 ) } ;
29
+ max-width: 100%;
30
+ padding: ${ remSize ( 24 ) } ;
31
+ height: 100%;
32
+ ` ;
33
+
20
34
class CollectionList extends React . Component {
21
35
constructor ( props ) {
22
36
super ( props ) ;
@@ -85,15 +99,14 @@ class CollectionList extends React.Component {
85
99
}
86
100
87
101
return (
88
- < div className = "collection-add-sketch" >
89
- < div className = "quick-add-wrapper" >
102
+ < CollectionAddSketchWrapper >
103
+ < QuickAddWrapper >
90
104
< Helmet >
91
105
< title > { this . getTitle ( ) } </ title >
92
106
</ Helmet >
93
-
94
107
{ content }
95
- </ div >
96
- </ div >
108
+ </ QuickAddWrapper >
109
+ </ CollectionAddSketchWrapper >
97
110
) ;
98
111
}
99
112
}
0 commit comments