Fix scrolling for QuickAdd list
This commit is contained in:
parent
5aa65029c6
commit
4c65e6580c
4 changed files with 23 additions and 20 deletions
|
@ -14,7 +14,7 @@ import Loader from '../../App/components/loader';
|
||||||
import QuickAddList from './QuickAddList';
|
import QuickAddList from './QuickAddList';
|
||||||
|
|
||||||
const projectInCollection = (project, collection) =>
|
const projectInCollection = (project, collection) =>
|
||||||
collection.items.find(item => item.project.id === project.id) != null;
|
collection.items.find(item => item.projectId === project.id) != null;
|
||||||
|
|
||||||
class CollectionList extends React.Component {
|
class CollectionList extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -81,6 +81,7 @@ class CollectionList extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className="collection-add-sketch">
|
||||||
<div className="quick-add-wrapper">
|
<div className="quick-add-wrapper">
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{this.getTitle()}</title>
|
<title>{this.getTitle()}</title>
|
||||||
|
@ -88,6 +89,7 @@ class CollectionList extends React.Component {
|
||||||
|
|
||||||
{content}
|
{content}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,12 +72,14 @@ class SketchList extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className="collection-add-sketch">
|
||||||
<div className="quick-add-wrapper">
|
<div className="quick-add-wrapper">
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{this.getSketchesTitle()}</title>
|
<title>{this.getSketchesTitle()}</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{content}
|
{content}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,12 +170,10 @@ class CollectionList extends React.Component {
|
||||||
closeOverlay={this.hideAddSketches}
|
closeOverlay={this.hideAddSketches}
|
||||||
isFixedHeight
|
isFixedHeight
|
||||||
>
|
>
|
||||||
<div className="collection-add-sketch">
|
|
||||||
<AddToCollectionSketchList
|
<AddToCollectionSketchList
|
||||||
username={this.props.username}
|
username={this.props.username}
|
||||||
collection={find(this.props.collections, { id: this.state.addingSketchesToCollectionId })}
|
collection={find(this.props.collections, { id: this.state.addingSketchesToCollectionId })}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</Overlay>
|
</Overlay>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -398,9 +398,10 @@ class Collection extends React.Component {
|
||||||
closeOverlay={this.hideAddSketches}
|
closeOverlay={this.hideAddSketches}
|
||||||
isFixedHeight
|
isFixedHeight
|
||||||
>
|
>
|
||||||
<div className="collection-add-sketch">
|
<AddToCollectionSketchList
|
||||||
<AddToCollectionSketchList username={this.props.username} collection={this.props.collection} />
|
username={this.props.username}
|
||||||
</div>
|
collection={this.props.collection}
|
||||||
|
/>
|
||||||
</Overlay>
|
</Overlay>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue