Skip to content
Snippets Groups Projects
Unverified Commit c6bab0a0 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Merge pull request #1842 from rschamp/bugfix/library-header-height

Account for filter bar in library grid height
parents 5ff8cb4a f9614f19
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,10 @@
padding: 0.5rem;
}
.library-scroll-grid.withFilterBar {
height: calc(100% - $library-header-height - $library-filter-bar-height - 2rem);
}
.filter-bar {
display: flex;
flex-direction: row;
......
......@@ -126,7 +126,11 @@ class LibraryComponent extends React.Component {
}
</div>
)}
<div className={styles.libraryScrollGrid}>
<div
className={classNames(styles.libraryScrollGrid, {
[styles.withFilterBar]: this.props.filterable || this.props.tags
})}
>
{this.getFilteredData().map((dataItem, index) => {
const scratchURL = dataItem.md5 ?
`https://cdn.assets.scratch.mit.edu/internalapi/asset/${dataItem.md5}/get/` :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment