Skip to content

Commit e4d8b26

Browse files
committed
Tweak Global Setting layout
1 parent e21666d commit e4d8b26

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

src/controls/border-radius-control.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default function BorderRadiusControl( {
167167
units={ borderRadiusUnits }
168168
min={ 0 }
169169
size="__unstable-large"
170-
__unstableInputWidth="110px"
170+
__unstableInputWidth="100px"
171171
/>
172172
</div>
173173
) }

src/controls/border-spacing-control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function BorderSpacingControl( {
138138
placeholder={ allInputPlaceholder }
139139
onChange={ handleOnChangeAll }
140140
size="__unstable-large"
141-
__unstableInputWidth="110px"
141+
__unstableInputWidth="100px"
142142
/>
143143
</HStack>
144144
) : (
@@ -153,7 +153,7 @@ export default function BorderSpacingControl( {
153153
units={ borderSpacingUnits }
154154
onChange={ ( value ) => handleOnChange( value, item.value ) }
155155
size="__unstable-large"
156-
__unstableInputWidth="110px"
156+
__unstableInputWidth="100px"
157157
/>
158158
</HStack>
159159
) ) }

src/controls/border-width-control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default function BorderWidthControl( {
167167
placeholder={ allInputPlaceholder }
168168
onChange={ handleOnChangeAll }
169169
size="__unstable-large"
170-
__unstableInputWidth="110px"
170+
__unstableInputWidth="100px"
171171
/>
172172
</div>
173173
) }
@@ -205,7 +205,7 @@ export default function BorderWidthControl( {
205205
onFocus={ () => handleOnFocus( item.value ) }
206206
onChange={ ( value ) => handleOnChange( value, item.value ) }
207207
size="__unstable-large"
208-
__unstableInputWidth="110px"
208+
__unstableInputWidth="100px"
209209
/>
210210
</div>
211211
);

src/controls/padding-control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function PaddingControl( {
136136
value={ allInputValue }
137137
units={ paddingUnits }
138138
size="__unstable-large"
139-
__unstableInputWidth="110px"
139+
__unstableInputWidth="100px"
140140
/>
141141
</div>
142142
) }
@@ -172,7 +172,7 @@ export default function PaddingControl( {
172172
onFocus={ () => handleOnFocus( item.value ) }
173173
onChange={ ( value ) => handleOnChange( value, item.value ) }
174174
size="__unstable-large"
175-
__unstableInputWidth="110px"
175+
__unstableInputWidth="100px"
176176
/>
177177
</div>
178178
);

src/settings/global-settings/index.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ export default function GlobalSettings() {
5656
marginBottom={ 0 }
5757
style={ { borderTop: '1px solid #e0e0e0' } }
5858
>
59-
<Button
60-
icon={ help }
61-
variant="link"
62-
onClick={ () => setIsHelpModalOpen( true ) }
63-
size="compact"
64-
>
65-
{ __( 'Help', 'flexible-table-block' ) }
66-
</Button>
6759
{ ! isGlobalSettingLoaded && <Spinner /> }
6860
{ isGlobalSettingLoaded && showGlobalSetting && (
6961
<Button
@@ -75,6 +67,13 @@ export default function GlobalSettings() {
7567
{ __( 'Global setting', 'flexible-table-block' ) }
7668
</Button>
7769
) }
70+
<Button
71+
icon={ help }
72+
variant="link"
73+
onClick={ () => setIsHelpModalOpen( true ) }
74+
label={ __( 'Help', 'flexible-table-block' ) }
75+
size="compact"
76+
/>
7877
</Spacer>
7978
{ isHelpModalOpen && <HelpModal { ...{ setIsHelpModalOpen } } /> }
8079
{ options && isSettingModalOpen && ( isAdministrator || options?.show_global_setting ) && (

src/settings/global-settings/setting-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default function SettingModal( { options, isAdministrator, setIsSettingMo
250250
} );
251251
} }
252252
size="__unstable-large"
253-
__unstableInputWidth="110px"
253+
__unstableInputWidth="100px"
254254
/>
255255
</Spacer>
256256
<Spacer
@@ -273,7 +273,7 @@ export default function SettingModal( { options, isAdministrator, setIsSettingMo
273273
} );
274274
} }
275275
size="__unstable-large"
276-
__unstableInputWidth="110px"
276+
__unstableInputWidth="100px"
277277
/>
278278
</Spacer>
279279
<Spacer

0 commit comments

Comments
 (0)