Skip to content

Commit

Permalink
Merge pull request #440 from pixelgrade/dev
Browse files Browse the repository at this point in the history
Dev to Main for 2.1.6
  • Loading branch information
georgeolaru authored Apr 6, 2023
2 parents c61be39 + 03eb4a6 commit 8b3fa5c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nova-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Nova Blocks
* Plugin URI: https://github.com/pixelgrade/nova-blocks/
* Description: Nova Blocks is a collection of <strong>distinctive Gutenberg blocks</strong>, 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
Expand Down
11 changes: 7 additions & 4 deletions packages/block-editor/src/components/drawer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -29,7 +29,7 @@ const Drawers = ( ownProps ) => {
return drawers.some( drawer => drawer?.props?.id === lastActiveDrawerId );
} ), [ drawerLists ] );

useEffect( () => {
useLayoutEffect( () => {

if ( ! existingDrawer ) {
setOpen( false );
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/src/svgs/align-bottom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/icons/src/svgs/align-center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/icons/src/svgs/align-top.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8b3fa5c

Please sign in to comment.