From f3b4abe280ee1bed16fc3ead19be67c3a677a6fd Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 4 Dec 2024 11:26:42 +0100 Subject: [PATCH] Fix no presets case --- .../single-input-control.js | 102 +++++++++--------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/packages/block-editor/src/components/border-radius-control/single-input-control.js b/packages/block-editor/src/components/border-radius-control/single-input-control.js index c9f1647945d21b..7d2c55f4d2d05a 100644 --- a/packages/block-editor/src/components/border-radius-control/single-input-control.js +++ b/packages/block-editor/src/components/border-radius-control/single-input-control.js @@ -151,42 +151,40 @@ export default function SingleInputControl( { // https://github.com/WordPress/gutenberg/pull/24966#issuecomment-685875026 return ( - { ! hasPresets || - ( showCustomValueControl && ( -
- -
- -
-
- -
- ) ) } + { ( ! hasPresets || showCustomValueControl ) && ( +
+ +
+ +
+
+ +
+ ) } { hasPresets && showRangeControl && ! showCustomValueControl && ( ) } -