Skip to content

Commit d99e25a

Browse files
committed
Added styled component in AddToCollectionList component
1 parent b5ecd60 commit d99e25a

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

client/modules/IDE/components/AddToCollectionList.jsx

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Helmet } from 'react-helmet';
44
import { connect } from 'react-redux';
55
import { bindActionCreators } from 'redux';
66
import { withTranslation } from 'react-i18next';
7-
7+
import styled from 'styled-components';
88
import * as ProjectActions from '../actions/project';
99
import * as ProjectsActions from '../actions/projects';
1010
import * as CollectionsActions from '../actions/collections';
@@ -13,10 +13,26 @@ import * as SortingActions from '../actions/sorting';
1313
import getSortedCollections from '../selectors/collections';
1414
import Loader from '../../App/components/loader';
1515
import QuickAddList from './QuickAddList';
16+
import { remSize } from '../../../theme';
1617

1718
const 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+
2036
class 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

Comments
 (0)