Add vertical extra space to search results (pushing pagination to bottom)

This commit is contained in:
Vesa Luusua 2017-06-26 16:07:06 +03:00
parent 8a0a7e0eff
commit 4e5f2f47f7
5 changed files with 23 additions and 3 deletions

View file

@ -100,6 +100,9 @@
border-bottom-style: solid;
border-bottom-width: 3px;
border-bottom-color: var(--matterColorDark);
/* Color */
color: var(--matterColorDark);
}
.paginationGap {

View file

@ -1,6 +1,9 @@
@import '../../marketplace.css';
.root {}
.root {
display: flex;
flex-direction: column;
}
.listingCards {
padding: 0 24px 24px 24px;
@ -11,6 +14,7 @@
}
.pagination {
margin-top: auto;
background-color: var(--matterColorLight);
padding: 0 24px;
}

View file

@ -1,4 +1,6 @@
exports[`SearchResultsPanel matches snapshot 1`] = `
<div
className="" />
className="">
<div />
</div>
`;

View file

@ -3,6 +3,8 @@
.container {
/* Layout */
width: 100%;
flex-grow: 1;
display: flex;
}
.searchResultSummary {
@ -18,4 +20,12 @@
white-space: nowrap;
}
.listings {}
.listings {
flex-grow: 1;
display: flex;
flex-direction: column;
}
.searchListingsPanel {
flex-grow: 1;
}

View file

@ -90,6 +90,7 @@ export const SearchPageComponent = props => {
<div className={css.container}>
<div className={css.listings}>
<SearchResultsPanel
className={css.searchListingsPanel}
currencyConfig={config.currencyConfig}
listings={listingsAreLoaded ? listings : []}
pagination={listingsAreLoaded ? pagination : null}