mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Fix layout and dom structure
This commit is contained in:
parent
69a1b3790a
commit
b473956705
7 changed files with 27 additions and 20 deletions
|
|
@ -65,7 +65,6 @@
|
|||
.modalHeadingWrapper {
|
||||
padding-bottom: 31px;
|
||||
border-bottom: 1px solid var(--matterColorNegative);
|
||||
margin-bottom: 27px;
|
||||
}
|
||||
|
||||
.modalHeading {
|
||||
|
|
@ -95,6 +94,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
.filtersWrapper {
|
||||
/* add bottom margin so that the last filter won't be hidden
|
||||
* under the bottom bar */
|
||||
margin-bottom: 160px;
|
||||
}
|
||||
|
||||
.showListingsContainer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
|
|
|
|||
|
|
@ -211,8 +211,10 @@ class SearchFiltersMobileComponent extends Component {
|
|||
<FormattedMessage id={'SearchFiltersMobile.resetAll'} />
|
||||
</button>
|
||||
</div>
|
||||
{categoryFilter}
|
||||
{featuresFilter}
|
||||
<div className={css.filtersWrapper}>
|
||||
{categoryFilter}
|
||||
{featuresFilter}
|
||||
</div>
|
||||
<div className={css.showListingsContainer}>
|
||||
<Button className={css.showListingsButton} onClick={this.closeFilters}>
|
||||
{showListingsLabel}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
.root {
|
||||
padding-bottom: 16px;
|
||||
margin-top: 30px;
|
||||
border-bottom: 1px solid var(--matterColorNegative);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,16 +65,15 @@ class SelectMultipleFilterMobileComponent extends Component {
|
|||
<FormattedMessage id={'SelectMultipleFilterMobileForm.clear'} />
|
||||
</button>
|
||||
</div>
|
||||
<div className={optionsContainerClass}>
|
||||
<SelectMultipleFilterMobileForm
|
||||
name={name}
|
||||
options={options}
|
||||
initialValues={namedInitialValues}
|
||||
onChange={this.handleSelect}
|
||||
enableReinitialize={true}
|
||||
keepDirtyOnReinitialize={true}
|
||||
/>
|
||||
</div>
|
||||
<SelectMultipleFilterMobileForm
|
||||
className={optionsContainerClass}
|
||||
name={name}
|
||||
options={options}
|
||||
initialValues={namedInitialValues}
|
||||
onChange={this.handleSelect}
|
||||
enableReinitialize={true}
|
||||
keepDirtyOnReinitialize={true}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
@import '../../marketplace.css';
|
||||
|
||||
.root {
|
||||
}
|
||||
|
|
@ -5,19 +5,22 @@ import { reduxForm, propTypes as formPropTypes } from 'redux-form';
|
|||
import { FieldGroupCheckbox, Form } from '../../components';
|
||||
|
||||
const SelectMultipleFilterMobileFormComponent = props => {
|
||||
const { form, name, options } = props;
|
||||
const { form, className, name, options } = props;
|
||||
|
||||
return (
|
||||
<Form>
|
||||
<Form className={className}>
|
||||
<FieldGroupCheckbox name={name} id={`${form}.${name}`} options={options} />
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
||||
SelectMultipleFilterMobileFormComponent.defaultProps = {};
|
||||
SelectMultipleFilterMobileFormComponent.defaultProps = {
|
||||
className: null,
|
||||
};
|
||||
|
||||
SelectMultipleFilterMobileFormComponent.propTypes = {
|
||||
...formPropTypes,
|
||||
className: string,
|
||||
name: string.isRequired,
|
||||
options: arrayOf(
|
||||
shape({
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
.root {
|
||||
padding-bottom: 16px;
|
||||
margin-top: 30px;
|
||||
border-bottom: 1px solid var(--matterColorNegative);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue