@@ -4,7 +4,7 @@ import { Helmet } from 'react-helmet';
44import { connect } from 'react-redux' ;
55import { bindActionCreators } from 'redux' ;
66import { withTranslation } from 'react-i18next' ;
7-
7+ import styled from 'styled-components' ;
88import * as ProjectActions from '../actions/project' ;
99import * as ProjectsActions from '../actions/projects' ;
1010import * as CollectionsActions from '../actions/collections' ;
@@ -13,10 +13,26 @@ import * as SortingActions from '../actions/sorting';
1313import getSortedCollections from '../selectors/collections' ;
1414import Loader from '../../App/components/loader' ;
1515import QuickAddList from './QuickAddList' ;
16+ import { remSize } from '../../../theme' ;
1617
1718const projectInCollection = ( project , collection ) =>
1819 collection . items . find ( ( item ) => item . projectId === project . id ) != null ;
1920
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+
2036class CollectionList extends React . Component {
2137 constructor ( props ) {
2238 super ( props ) ;
@@ -85,15 +101,15 @@ class CollectionList extends React.Component {
85101 }
86102
87103 return (
88- < div className = "collection-add-sketch" >
89- < div className = "quick-add-wrapper" >
104+ < CollectionAddSketchWrapper >
105+ < QuickAddWrapper >
90106 < Helmet >
91107 < title > { this . getTitle ( ) } </ title >
92108 </ Helmet >
93109
94110 { content }
95- </ div >
96- </ div >
111+ </ QuickAddWrapper >
112+ </ CollectionAddSketchWrapper >
97113 ) ;
98114 }
99115}
0 commit comments