Skip to content

Commit

Permalink
Don't show the presets on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Sep 12, 2022
1 parent 8e3da3f commit 1ec1d92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/spacer/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from '@wordpress/components';
import { useInstanceId } from '@wordpress/compose';
import { View } from '@wordpress/primitives';
import { Platform } from '@wordpress/element';

/**
* Internal dependencies
Expand Down Expand Up @@ -57,7 +58,9 @@ function DimensionInput( { label, onChange, isResizing, value = '' } ) {

return (
<>
{ ( ! spacingSizes || spacingSizes?.length === 0 ) && (
{ ( ! spacingSizes ||
spacingSizes?.length === 0 ||
Platform.isNative ) && (
<BaseControl label={ label } id={ inputId }>
<UnitControl
id={ inputId }
Expand Down

0 comments on commit 1ec1d92

Please sign in to comment.