diff --git a/nova-blocks.php b/nova-blocks.php
index 2b6a0a970..98f945324 100644
--- a/nova-blocks.php
+++ b/nova-blocks.php
@@ -3,7 +3,7 @@
* Plugin Name: Nova Blocks
* Plugin URI: https://github.com/pixelgrade/nova-blocks/
* Description: Nova Blocks is a collection of distinctive Gutenberg blocks, committed to making your site shine like a newborn star. It is taking a design-driven approach to help you made the right decisions and showcase your content in the best shape.
- * Version: 2.1.5
+ * Version: 2.1.6
* Author: Pixelgrade
* Author URI: https://www.pixelgrade.com
* License: GPLv2 or later
diff --git a/packages/block-editor/src/components/drawer/index.js b/packages/block-editor/src/components/drawer/index.js
index e3952bb10..4214e751a 100644
--- a/packages/block-editor/src/components/drawer/index.js
+++ b/packages/block-editor/src/components/drawer/index.js
@@ -4,11 +4,11 @@ import { orderBy } from 'lodash';
import {
Children,
cloneElement,
- useEffect,
+ useLayoutEffect,
useMemo,
useRef,
useState,
- } from '@wordpress/element';
+} from '@wordpress/element';
import { useMemoryState } from '../../index';
@@ -29,7 +29,7 @@ const Drawers = ( ownProps ) => {
return drawers.some( drawer => drawer?.props?.id === lastActiveDrawerId );
} ), [ drawerLists ] );
- useEffect( () => {
+ useLayoutEffect( () => {
if ( ! existingDrawer ) {
setOpen( false );
@@ -58,11 +58,14 @@ const Drawers = ( ownProps ) => {
const drawerListHeight = getDrawerListHeight();
const drawerPanelHeight = getActiveDrawerTitleHeight();
+ // If the drawer is open, the height of the wrapper should be the height of the drawer panel.
setWrapperHeight( !! open ? drawerPanelHeight : drawerListHeight );
};
- useEffect( updateHeight, [ open ] );
+ // This hook updates the height of the collapsible to match the height of the content
+ useLayoutEffect( updateHeight, [ open ] );
+ // Translate the drawer to the left when the menu button is clicked.
const transform = open ? 'translate3d(-100%,0,0)' : 'translate3d(0%,0,0)';
// keep track of number of drawers in previous drawerLists
diff --git a/packages/icons/src/svgs/align-bottom.svg b/packages/icons/src/svgs/align-bottom.svg
index 3ece283d9..a857b7864 100644
--- a/packages/icons/src/svgs/align-bottom.svg
+++ b/packages/icons/src/svgs/align-bottom.svg
@@ -1,3 +1,3 @@
diff --git a/packages/icons/src/svgs/align-center.svg b/packages/icons/src/svgs/align-center.svg
index 1ddeefbce..4f5b31f9d 100644
--- a/packages/icons/src/svgs/align-center.svg
+++ b/packages/icons/src/svgs/align-center.svg
@@ -1,4 +1,4 @@
diff --git a/packages/icons/src/svgs/align-top.svg b/packages/icons/src/svgs/align-top.svg
index 5ddbb1e77..0f7b6d516 100644
--- a/packages/icons/src/svgs/align-top.svg
+++ b/packages/icons/src/svgs/align-top.svg
@@ -1,4 +1,4 @@
diff --git a/readme.txt b/readme.txt
index 97429a185..ec9cd05d1 100644
--- a/readme.txt
+++ b/readme.txt
@@ -2,8 +2,8 @@
Contributors: pixelgrade, vlad.olaru, babbardel, razvanonofrei, gorby31
Tags: blocks, editor, gutenberg, gutenberg blocks, page builder, block enabled, page building, full site editing, site editor, posts collection
Requires at least: 5.9
-Tested up to: 6.0.1
-Stable tag: 2.1.5
+Tested up to: 6.2.0
+Stable tag: 2.1.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -94,6 +94,10 @@ Yes! Nova Block's core features are free to use.
== Changelog ==
+= 2.1.6 =
+* Fixed issue with blocks options being hidden when opening a sliding panel
+* Restored missing Content Alignment icons in Space and Sizing component
+
= 2.1.5 =
* Fix Supernova query in certain situations.
* Fix PHP warnings.