1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00

fix: spacing

This commit is contained in:
Fredrik Oseberg 2024-01-10 16:02:23 +01:00
parent ebf604f353
commit 9dd3336a04
No known key found for this signature in database
GPG Key ID: 816A423246CADD4E

View File

@ -146,7 +146,15 @@ const StyledHeaderBox = styled(Box)(({ theme }) => ({
paddingLeft: theme.spacing(6), paddingLeft: theme.spacing(6),
paddingRight: theme.spacing(6), paddingRight: theme.spacing(6),
paddingTop: theme.spacing(2), paddingTop: theme.spacing(2),
paddingBottom: theme.spacing(2), }));
const StyledAlertBox = styled(Box)(({ theme }) => ({
paddingLeft: theme.spacing(6),
paddingRight: theme.spacing(6),
'& > *': {
marginTop: theme.spacing(2),
marginBottom: theme.spacing(2),
},
})); }));
const StyledEnvironmentBox = styled(Box)(({ theme }) => ({ const StyledEnvironmentBox = styled(Box)(({ theme }) => ({
@ -375,6 +383,7 @@ export const NewFeatureStrategyForm = ({
) : null} ) : null}
</StyledHeaderBox> </StyledHeaderBox>
<StyledAlertBox>
<ConditionallyRender <ConditionallyRender
condition={hasChangeRequestInReviewForEnvironment} condition={hasChangeRequestInReviewForEnvironment}
show={alert} show={alert}
@ -399,21 +408,23 @@ export const NewFeatureStrategyForm = ({
show={ show={
<Alert severity='success'> <Alert severity='success'>
This feature toggle is currently enabled in the{' '} This feature toggle is currently enabled in the{' '}
<strong>{environmentId}</strong> environment. Any <strong>{environmentId}</strong> environment.
changes made here will be available to users as soon Any changes made here will be available to users
as these changes are approved and applied. as soon as these changes are approved and
applied.
</Alert> </Alert>
} }
elseShow={ elseShow={
<Alert severity='success'> <Alert severity='success'>
This feature toggle is currently enabled in the{' '} This feature toggle is currently enabled in the{' '}
<strong>{environmentId}</strong> environment. Any <strong>{environmentId}</strong> environment.
changes made here will be available to users as soon Any changes made here will be available to users
as you hit <strong>save</strong>. as soon as you hit <strong>save</strong>.
</Alert> </Alert>
} }
/> />
</FeatureStrategyEnabled> </FeatureStrategyEnabled>
</StyledAlertBox>
<StyledTabs value={tab} onChange={handleChange}> <StyledTabs value={tab} onChange={handleChange}>
<StyledTab label='General' /> <StyledTab label='General' />