Skip to content
Snippets Groups Projects
Commit 26dec715 authored by esikkala's avatar esikkala
Browse files

Adjust facet containers

parent fdb64f36
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,16 @@ const styles = theme => ({
facetContainerLast: {
marginBottom: 2,
},
facetValuesContainerTen: {
height: 345,
three: {
height: 108,
padding: theme.spacing.unit,
},
facetValuesContainerThree: {
height: 108,
five: {
height: 150,
padding: theme.spacing.unit,
},
ten: {
height: 345,
padding: theme.spacing.unit,
},
facetHeaderButtons: {
......@@ -57,10 +61,7 @@ class FacetBar extends React.Component {
sortButton={facets[id].sortButton}
fetchFacet={this.props.fetchFacet}
/>
<div className={facets[id].containerSize === 'small' ?
classes.facetValuesContainerThree
: classes.facetValuesContainerTen
}>
<div className={classes[facets[id].containerClass]}>
<Tree
facetFunctionality={true}
property={id}
......
......@@ -22,7 +22,7 @@ export const INITIAL_STATE = {
sortButton: false,
isFetching: false,
searchField: false,
containerSize: 'small',
containerClass: 'three',
},
productionPlace: {
id: 'productionPlace',
......@@ -36,7 +36,7 @@ export const INITIAL_STATE = {
sortButton: false,
isFetching: false,
searchField: true,
containerSize: 'large',
containerClass: 'ten',
},
author: {
id: 'author',
......@@ -50,7 +50,7 @@ export const INITIAL_STATE = {
sortButton: false,
isFetching: false,
searchField: true,
containerSize: 'large',
containerClass: 'ten',
},
// language: {
// id: 'language',
......
......@@ -21,7 +21,7 @@ export const INITIAL_STATE = {
sortButton: false,
isFetching: false,
searchField: false,
containerSize: 'small',
containerClass: 'five',
},
area: {
id: 'area',
......@@ -35,7 +35,7 @@ export const INITIAL_STATE = {
sortButton: false,
isFetching: false,
searchField: false,
containerSize: 'large',
containerClass: 'ten',
},
// type: {
// id: 'type',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment