PriceFilterPlain: fix padding

This commit is contained in:
Vesa Luusua 2018-11-19 12:25:20 +02:00
parent ecaa1ece42
commit 7422281f31
2 changed files with 20 additions and 14 deletions

View file

@ -34,6 +34,10 @@
cursor: pointer;
}
.formWrapper {
padding-left: 20px;
}
.clearButton {
@apply --marketplaceH5FontStyles;
font-weight: var(--fontWeightMedium);

View file

@ -73,20 +73,22 @@ class PriceFilterPlainComponent extends Component {
<FormattedMessage id={'PriceFilter.clear'} />
</button>
</div>
<PriceFilterForm
id={id}
initialValues={hasInitialValues ? initialValues : { minPrice: min, maxPrice: max }}
onChange={this.handleChange}
intl={intl}
contentRef={node => {
this.filterContent = node;
}}
min={min}
max={max}
step={step}
liveEdit
isOpen={this.state.isOpen}
/>
<div className={css.formWrapper}>
<PriceFilterForm
id={id}
initialValues={hasInitialValues ? initialValues : { minPrice: min, maxPrice: max }}
onChange={this.handleChange}
intl={intl}
contentRef={node => {
this.filterContent = node;
}}
min={min}
max={max}
step={step}
liveEdit
isOpen={this.state.isOpen}
/>
</div>
</div>
);
}