diff --git a/src/classes/theme-helper/class-tainacan-theme-helper.php b/src/classes/theme-helper/class-tainacan-theme-helper.php index c0ae1b701..4f7bc198a 100644 --- a/src/classes/theme-helper/class-tainacan-theme-helper.php +++ b/src/classes/theme-helper/class-tainacan-theme-helper.php @@ -37,7 +37,7 @@ class Theme_Helper { // Replace collections permalink to post type archive if cover not enabled add_filter('post_type_link', array($this, 'permalink_filter'), 10, 3); - // Replace single query to the page content set as cover for the colllection + // Replace single query to the page content set as cover for the collection // Redirect to post type archive if no cover page is set add_action('wp', array($this, 'collection_single_redirect')); diff --git a/src/views/admin/scss/_view-mode-mosaic.scss b/src/views/admin/scss/_view-mode-mosaic.scss index 6a81447e8..6032d82fc 100644 --- a/src/views/admin/scss/_view-mode-mosaic.scss +++ b/src/views/admin/scss/_view-mode-mosaic.scss @@ -4,12 +4,12 @@ --tainacan-mosaic-view-mode-min-height: 180px; display: flex; flex-wrap: wrap; - grid-gap: calc(2em + 16px) var(--tainacan-mosaic-view-mode-gap, 12px); + grid-gap: calc(2em + 18px) var(--tainacan-mosaic-view-mode-gap, 12px); list-style: none; height: auto; min-height: 0px; /* While most view modes set this to 50vh, this causes a bug for this one if there are few items to display */ margin: 0; - margin-bottom: calc(2em + 16px + var(--tainacan-container-padding)); + margin-bottom: calc(2em + 18px + var(--tainacan-container-padding)); padding: 0; list-style: none; animation-name: appear; diff --git a/src/views/gutenberg-blocks/blocks/faceted-search/block.json b/src/views/gutenberg-blocks/blocks/faceted-search/block.json index ec7ca34be..6afd94a89 100644 --- a/src/views/gutenberg-blocks/blocks/faceted-search/block.json +++ b/src/views/gutenberg-blocks/blocks/faceted-search/block.json @@ -221,7 +221,7 @@ "type": "boolean", "default": false }, - "hideFilterColllapses": { + "hideFilterCollapses": { "type": "boolean", "default": false }, diff --git a/src/views/gutenberg-blocks/blocks/faceted-search/edit.js b/src/views/gutenberg-blocks/blocks/faceted-search/edit.js index d362c46ba..e8c2e60ce 100644 --- a/src/views/gutenberg-blocks/blocks/faceted-search/edit.js +++ b/src/views/gutenberg-blocks/blocks/faceted-search/edit.js @@ -79,7 +79,7 @@ export default function({ attributes, setAttributes, isSelected, clientId }) { collectionOrderByType, shouldNotHideFiltersOnMobile, displayFiltersHorizontally, - hideFilterColllapses, + hideFilterCollapses, filtersInlineWidth } = attributes; @@ -535,10 +535,10 @@ export default function({ attributes, setAttributes, isSelected, clientId }) { { - hideFilterColllapses = isChecked; - setAttributes({ hideFilterColllapses: isChecked }); + hideFilterCollapses = isChecked; + setAttributes({ hideFilterCollapses: isChecked }); } } /> @@ -922,7 +922,7 @@ export default function({ attributes, setAttributes, isSelected, clientId }) { }} className="filters">
- { !hideFilterColllapses ? : null } + { !hideFilterCollapses ? : null } { Array(2).fill().map( () => { return
diff --git a/src/views/gutenberg-blocks/blocks/faceted-search/save.js b/src/views/gutenberg-blocks/blocks/faceted-search/save.js index 49ab288f5..6a3427bd1 100644 --- a/src/views/gutenberg-blocks/blocks/faceted-search/save.js +++ b/src/views/gutenberg-blocks/blocks/faceted-search/save.js @@ -52,6 +52,7 @@ export default function({ attributes }) { collectionOrderByType, shouldNotHideFiltersOnMobile, displayFiltersHorizontally, + hideFilterCollapses, filtersInlineWidth } = attributes; @@ -64,7 +65,7 @@ export default function({ attributes }) { // Gets attributes such as style, that are automatically added by the editor hook const blockProps = useBlockProps.save(); - + console.log(hideFilterCollapses) return