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")}
</Typography>
</Box>
<Box>
<Stack direction="row" alignItems="center" gap={theme.spacing(4)}>
<Box flex={1}>
<Stack gap={theme.spacing(20)}>
<TextInput
id="pagespeedApiKey"
label={t("pageSpeedApiKeyFieldLabel")}
@@ -343,18 +341,14 @@ const Settings = () => {
}
/>
{isApiKeySet && (
<Typography>
{t("pageSpeedApiKeyFieldResetLabel")}
</Typography>
)}
</Box>
{isApiKeySet && (
<Button onClick={handleResetApiKey} variant="contained" color="error">
<Box>
<Typography>{t("pageSpeedApiKeyFieldResetLabel")}</Typography>
<Button onClick={handleResetApiKey} variant="contained" color="error" sx={{ mt: theme.spacing(4) }}>
{t("reset")}
</Button>
</Box>
)}
</Stack>
</Box>
</ConfigBox>
{isAdmin && (
<ConfigBox>