mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Add vertical extra space to search results (pushing pagination to bottom)
This commit is contained in:
parent
8a0a7e0eff
commit
4e5f2f47f7
5 changed files with 23 additions and 3 deletions
|
|
@ -100,6 +100,9 @@
|
|||
border-bottom-style: solid;
|
||||
border-bottom-width: 3px;
|
||||
border-bottom-color: var(--matterColorDark);
|
||||
|
||||
/* Color */
|
||||
color: var(--matterColorDark);
|
||||
}
|
||||
|
||||
.paginationGap {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
exports[`SearchResultsPanel matches snapshot 1`] = `
|
||||
<div
|
||||
className="" />
|
||||
className="">
|
||||
<div />
|
||||
</div>
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue