Passes filter width param to save function of the block. #338.

This commit is contained in:
Mateus Machado Luna 2020-02-20 16:45:11 -03:00
parent a13cfefbc0
commit 57fbc7cd2a
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@ export default class CollectionModal extends React.Component {
// Initialize state
this.state = {
collectionViewModes: [],
collectionsPerPage: 24,
collectionId: undefined,
isLoadingCollections: false,

View File

@ -584,13 +584,15 @@ registerBlockType('tainacan/faceted-search', {
showFullscreenWithViewModes,
listType,
backgroundColor,
baseFontSize
baseFontSize,
filtersAreaWidth
} = attributes;
return <div
style={{
'font-size': baseFontSize + 'px',
'--tainacan-background-color': backgroundColor,
'font-size': baseFontSize + 'px'
'--tainacan-filter-menu-width-theme': filtersAreaWidth + '%'
}}
className={ className }>
<main