Passes filter width param to save function of the block. #338.
This commit is contained in:
parent
a13cfefbc0
commit
57fbc7cd2a
|
@ -11,6 +11,7 @@ export default class CollectionModal extends React.Component {
|
|||
|
||||
// Initialize state
|
||||
this.state = {
|
||||
collectionViewModes: [],
|
||||
collectionsPerPage: 24,
|
||||
collectionId: undefined,
|
||||
isLoadingCollections: false,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue