From 5b74736769fbf6c4c6ea2bb17c96ccc8f3745007 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 22 Jul 2022 13:29:01 -0400 Subject: [PATCH] fix(striker-ui): move suggest button and ensure help message fills width --- striker-ui/components/StrikerInitForm.tsx | 74 +++++++++++++---------- 1 file changed, 43 insertions(+), 31 deletions(-) diff --git a/striker-ui/components/StrikerInitForm.tsx b/striker-ui/components/StrikerInitForm.tsx index 6f5c62ee..a19006a9 100644 --- a/striker-ui/components/StrikerInitForm.tsx +++ b/striker-ui/components/StrikerInitForm.tsx @@ -259,25 +259,29 @@ const StrikerInitGeneralForm: FC = () => { onChange={handleOrganizationNameInputOnChange} value={organizationNameInput} /> - - - - + + ), + inputProps: { + maxLength: MAX_ORGANIZATION_PREFIX_LENGTH, + style: { width: '2.5em' }, + }, + onBlur: populateHostNameInputOnBlur, + sx: { + minWidth: 'min-content', + width: 'fit-content', + }, + }} + label="Prefix" + onChange={handleOrganizationPrefixInputOnChange} + value={organizationPrefixInput} + /> { onChange={handleHostNumberInputOnChange} value={hostNumberInput} /> - :first-child': { flexGrow: 1 } }}> - - - + , + inputProps: { + style: { + minWidth: '4em', + }, + }, + sx: { + minWidth: 'min-content', + }, + }} + label="Host name" + onChange={handleHostNameInputOnChange} + value={hostNameInput} + /> );