Skip to content

Commit 590712e

Browse files
committed
Settings Page: fix Tools content layout
1 parent ad73baf commit 590712e

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

src/admin/tools/components/export-tool/index.js

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
import { __ } from '@wordpress/i18n';
55
import apiFetch from '@wordpress/api-fetch';
66
import { useContext } from '@wordpress/element';
7-
import { Button, PanelBody, __experimentalText as Text } from '@wordpress/components';
7+
import {
8+
Button,
9+
PanelBody,
10+
__experimentalText as Text,
11+
__experimentalVStack as VStack,
12+
} from '@wordpress/components';
813

914
/**
1015
* Internal dependencies
@@ -46,15 +51,17 @@ export default function ExportTool() {
4651

4752
return (
4853
<PanelBody title={ __( 'Export Editor Config', 'custom-html-block-extension' ) }>
49-
<Text as="p">
50-
{ __(
51-
'Use the download button to export the editor settings. You can restore the editor config by importing the exported file on another WordPress site.',
52-
'custom-html-block-extension'
53-
) }
54-
</Text>
55-
<Button variant="primary" onClick={ onExportOptions } __next40pxDefaultSize>
56-
{ __( 'Export', 'custom-html-block-extension' ) }
57-
</Button>
54+
<VStack align="start">
55+
<Text as="p">
56+
{ __(
57+
'Use the download button to export the editor settings. You can restore the editor config by importing the exported file on another WordPress site.',
58+
'custom-html-block-extension'
59+
) }
60+
</Text>
61+
<Button variant="primary" onClick={ onExportOptions } __next40pxDefaultSize>
62+
{ __( 'Export', 'custom-html-block-extension' ) }
63+
</Button>
64+
</VStack>
5865
</PanelBody>
5966
);
6067
}

src/admin/tools/components/import-tool/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ export default function ImportTool() {
8787

8888
return (
8989
<PanelBody title={ __( 'Import editor config', 'custom-html-block-extension' ) }>
90-
<Text as="p">
91-
{ __(
92-
'Select the Custom HTML Block Extension JSON file you would like to import and click the import button below.',
93-
'custom-html-block-extension'
94-
) }
95-
</Text>
9690
<VStack spacing={ 4 } align="start">
91+
<Text as="p">
92+
{ __(
93+
'Select the Custom HTML Block Extension JSON file you would like to import and click the import button below.',
94+
'custom-html-block-extension'
95+
) }
96+
</Text>
9797
<HStack spacing={ 4 } justify="start" wrap>
9898
<FormFileUpload
9999
accept="application/json"

0 commit comments

Comments
 (0)