From 179696f2054315eb5afc17d8b6f6b0ac191a5487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:32:49 +0100 Subject: [PATCH] Panel: better spacing --- .../src/dataforms-layouts/panel/index.tsx | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/packages/dataviews/src/dataforms-layouts/panel/index.tsx b/packages/dataviews/src/dataforms-layouts/panel/index.tsx index 20854209096884..0b616d049bde7d 100644 --- a/packages/dataviews/src/dataforms-layouts/panel/index.tsx +++ b/packages/dataviews/src/dataforms-layouts/panel/index.tsx @@ -8,7 +8,6 @@ import { __experimentalSpacer as Spacer, Dropdown, Button, - BaseControl, } from '@wordpress/components'; import { sprintf, __, _x } from '@wordpress/i18n'; import { useState, useMemo, useContext } from '@wordpress/element'; @@ -200,9 +199,14 @@ export default function FormPanelField< Item >( { if ( labelPosition === 'top' ) { return ( - - { fieldLabel } -
+ +
+ { fieldLabel } +
+
( { labelPosition={ labelPosition } />
- +
); } if ( labelPosition === 'none' ) { return ( - +
+ +
); } @@ -240,7 +246,7 @@ export default function FormPanelField< Item >( {
{ fieldLabel }
-
+