Skip to content

Commit

Permalink
Disable dimensions panel on native
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 22, 2023
1 parent 662fc61 commit b073036
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
__experimentalView as View,
} from '@wordpress/components';
import { Icon, layout, positionCenter, stretchWide } from '@wordpress/icons';
import { useCallback } from '@wordpress/element';
import { useCallback, Platform } from '@wordpress/element';

/**
* Internal dependencies
Expand All @@ -41,13 +41,14 @@ export function useHasDimensionsPanel( settings ) {
const hasChildLayout = useHasChildLayout( settings );

return (
hasContentSize ||
hasWideSize ||
hasPadding ||
hasMargin ||
hasGap ||
hasMinHeight ||
hasChildLayout
Platform.OS === 'web' &&
( hasContentSize ||
hasWideSize ||
hasPadding ||
hasMargin ||
hasGap ||
hasMinHeight ||
hasChildLayout )
);
}

Expand Down

0 comments on commit b073036

Please sign in to comment.