fix(striker-ui): align styles in confirm in provison server

main
Tsu-ba-me 1 year ago
parent 28ed37ef3b
commit c381de05ad
  1. 27
      striker-ui/components/ProvisionServerDialog.tsx

@ -32,7 +32,7 @@ import {
testNotBlank, testNotBlank,
testRange, testRange,
} from '../lib/test_input'; } from '../lib/test_input';
import { BodyText, HeaderText, InlineMonoText, MonoText } from './Text'; import { BodyText, HeaderText, InlineMonoText } from './Text';
type InputMessage = Partial<Pick<MessageBoxProps, 'type' | 'text'>>; type InputMessage = Partial<Pick<MessageBoxProps, 'type' | 'text'>>;
@ -1379,8 +1379,11 @@ const ProvisionServerDialog = ({
<BodyText text="Memory" /> <BodyText text="Memory" />
</Grid> </Grid>
<Grid item xs={c2}> <Grid item xs={c2}>
<MonoText /> <BodyText>
<InlineMonoText text={`${inputMemoryValue} ${inputMemoryUnit}`} /> <InlineMonoText>
{inputMemoryValue} {inputMemoryUnit}
</InlineMonoText>
</BodyText>
</Grid> </Grid>
<Grid item xs={c3}> <Grid item xs={c3}>
<BodyText> <BodyText>
@ -1431,9 +1434,11 @@ const ProvisionServerDialog = ({
<BodyText text="Install ISO" /> <BodyText text="Install ISO" />
</Grid> </Grid>
<Grid item xs={c2n3}> <Grid item xs={c2n3}>
<InlineMonoText <BodyText>
text={fileUUIDMapToData[inputInstallISOFileUUID].fileName} <InlineMonoText>
/> {fileUUIDMapToData[inputInstallISOFileUUID].fileName}
</InlineMonoText>
</BodyText>
</Grid> </Grid>
</Grid> </Grid>
<Grid container direction="row" item xs={gridColumns}> <Grid container direction="row" item xs={gridColumns}>
@ -1441,13 +1446,15 @@ const ProvisionServerDialog = ({
<BodyText text="Driver ISO" /> <BodyText text="Driver ISO" />
</Grid> </Grid>
<Grid item xs={c2n3}> <Grid item xs={c2n3}>
<BodyText>
{fileUUIDMapToData[inputDriverISOFileUUID] ? ( {fileUUIDMapToData[inputDriverISOFileUUID] ? (
<InlineMonoText <InlineMonoText>
text={fileUUIDMapToData[inputDriverISOFileUUID].fileName} {fileUUIDMapToData[inputDriverISOFileUUID].fileName}
/> </InlineMonoText>
) : ( ) : (
<BodyText text="none" /> 'none'
)} )}
</BodyText>
</Grid> </Grid>
</Grid> </Grid>
<Grid container direction="row" item xs={gridColumns}> <Grid container direction="row" item xs={gridColumns}>

Loading…
Cancel
Save