Removed unnecessary flex

This commit is contained in:
Daniel Cojocea committed 2024-07-22 13:48:26 -04:00
1 parent cd87d6ad0d
commit 7dc51f3bbc
4 files changed
+15 -7

No files matched your search

@@ -64,3 +64,9 @@
.MuiInputBase-root:not(.Mui-focused):has(#monitor-interval):hover fieldset { .MuiInputBase-root:not(.Mui-focused):has(#monitor-interval):hover fieldset {
border-color: var(--env-var-color-29); border-color: var(--env-var-color-29);
} }
.configure-monitor-form {
display: flex;
flex-direction: column;
gap: var(--env-var-spacing-4);
}
@@ -144,7 +144,6 @@ const Configure = () => {
}} }}
/> />
<form className="configure-monitor-form" noValidate spellCheck="false"> <form className="configure-monitor-form" noValidate spellCheck="false">
<Stack gap={theme.gap.xl}>
<Stack direction="row" gap={theme.gap.small} mt={theme.gap.small}> <Stack direction="row" gap={theme.gap.small} mt={theme.gap.small}>
{config?.status ? <GreenCheck /> : <RedCheck />} {config?.status ? <GreenCheck /> : <RedCheck />}
<Box> <Box>
@@ -207,8 +206,8 @@ const Configure = () => {
<Box> <Box>
<Typography component="h2">General settings</Typography> <Typography component="h2">General settings</Typography>
<Typography component="p" sx={{ mt: theme.gap.small }}> <Typography component="p" sx={{ mt: theme.gap.small }}>
Here you can select the URL of the host, together with the type Here you can select the URL of the host, together with the type of
of monitor. monitor.
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.gap.xl}> <Stack gap={theme.gap.xl}>
@@ -321,8 +320,7 @@ const Configure = () => {
</Box> </Box>
</Stack> </Stack>
</Stack> </Stack>
</Stack> <Stack direction="row" justifyContent="flex-end">
<Stack direction="row" justifyContent="flex-end" mt={theme.gap.xl}>
<Button level="primary" label="Save" sx={{ px: theme.gap.ml }} /> <Button level="primary" label="Save" sx={{ px: theme.gap.ml }} />
</Stack> </Stack>
</form> </form>
+6
View File
@@ -34,3 +34,9 @@
.settings .config-box .MuiStack-root { .settings .config-box .MuiStack-root {
flex: 1; flex: 1;
} }
.settings-form {
display: flex;
flex-direction: column;
gap: var(--env-var-spacing-4);
}
-2
View File
@@ -19,7 +19,6 @@ const Settings = () => {
}} }}
> >
<form className="settings-form" noValidate spellCheck="false"> <form className="settings-form" noValidate spellCheck="false">
<Stack gap={theme.gap.xl}>
<Stack <Stack
className="config-box" className="config-box"
direction="row" direction="row"
@@ -117,7 +116,6 @@ const Settings = () => {
<Stack direction="row" justifyContent="flex-end"> <Stack direction="row" justifyContent="flex-end">
<Button level="primary" label="Save" /> <Button level="primary" label="Save" />
</Stack> </Stack>
</Stack>
</form> </form>
</Box> </Box>
); );