update the layout structure to improve UI

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-05-07 15:45:09 -04:00
1 parent 376b820ff4
commit 51d9719293
1 file changed
+5 -11
+5 -11
View File
@@ -320,9 +320,7 @@ const Settings = () => {
{t("pageSpeedApiKeyFieldDescription")} {t("pageSpeedApiKeyFieldDescription")}
</Typography> </Typography>
</Box> </Box>
<Box> <Stack gap={theme.spacing(20)}>
<Stack direction="row" alignItems="center" gap={theme.spacing(4)}>
<Box flex={1}>
<TextInput <TextInput
id="pagespeedApiKey" id="pagespeedApiKey"
label={t("pageSpeedApiKeyFieldLabel")} label={t("pageSpeedApiKeyFieldLabel")}
@@ -343,18 +341,14 @@ const Settings = () => {
} }
/> />
{isApiKeySet && ( {isApiKeySet && (
<Typography> <Box>
{t("pageSpeedApiKeyFieldResetLabel")} <Typography>{t("pageSpeedApiKeyFieldResetLabel")}</Typography>
</Typography> <Button onClick={handleResetApiKey} variant="contained" color="error" sx={{ mt: theme.spacing(4) }}>
)}
</Box>
{isApiKeySet && (
<Button onClick={handleResetApiKey} variant="contained" color="error">
{t("reset")} {t("reset")}
</Button> </Button>
</Box>
)} )}
</Stack> </Stack>
</Box>
</ConfigBox> </ConfigBox>
{isAdmin && ( {isAdmin && (
<ConfigBox> <ConfigBox>