fix: align radio buttons and fix rate limits box dark mode contrast
- Add top margin to radio buttons so they align with the first line of the multi-line labels - Remove custom background color from rate limits box that was unreadable in dark mode - Use default text color for bullet points instead of text.secondary - Keep only the example note in text.secondary with italic style
This commit is contained in:
1 parent
27c3a9e12b
commit
c10d9be0f0
1 file changed
+13
-14
@@ -103,9 +103,9 @@ const SettingsGlobalping = ({
|
|||||||
>
|
>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="3"
|
value="3"
|
||||||
control={<Radio />}
|
control={<Radio sx={{ mt: theme.spacing(2) }} />}
|
||||||
label={
|
label={
|
||||||
<Box>
|
<Box sx={{ py: theme.spacing(2) }}>
|
||||||
<Typography fontWeight={500}>
|
<Typography fontWeight={500}>
|
||||||
{t("pages.settings.globalpingSettings.tier3Label")}
|
{t("pages.settings.globalpingSettings.tier3Label")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -114,13 +114,13 @@ const SettingsGlobalping = ({
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
}
|
}
|
||||||
sx={{ mb: theme.spacing(4), alignItems: "flex-start" }}
|
sx={{ mb: theme.spacing(2), alignItems: "flex-start" }}
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="6"
|
value="6"
|
||||||
control={<Radio />}
|
control={<Radio sx={{ mt: theme.spacing(2) }} />}
|
||||||
label={
|
label={
|
||||||
<Box>
|
<Box sx={{ py: theme.spacing(2) }}>
|
||||||
<Typography fontWeight={500}>
|
<Typography fontWeight={500}>
|
||||||
{t("pages.settings.globalpingSettings.tier6Label")}
|
{t("pages.settings.globalpingSettings.tier6Label")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -129,13 +129,13 @@ const SettingsGlobalping = ({
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
}
|
}
|
||||||
sx={{ mb: theme.spacing(4), alignItems: "flex-start" }}
|
sx={{ mb: theme.spacing(2), alignItems: "flex-start" }}
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="15"
|
value="15"
|
||||||
control={<Radio />}
|
control={<Radio sx={{ mt: theme.spacing(2) }} />}
|
||||||
label={
|
label={
|
||||||
<Box>
|
<Box sx={{ py: theme.spacing(2) }}>
|
||||||
<Typography fontWeight={500}>
|
<Typography fontWeight={500}>
|
||||||
{t("pages.settings.globalpingSettings.tier15Label")}
|
{t("pages.settings.globalpingSettings.tier15Label")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -156,7 +156,6 @@ const SettingsGlobalping = ({
|
|||||||
p: theme.spacing(8),
|
p: theme.spacing(8),
|
||||||
borderRadius: theme.spacing(2),
|
borderRadius: theme.spacing(2),
|
||||||
border: `1px solid ${theme.palette.primary.lowContrast}`,
|
border: `1px solid ${theme.palette.primary.lowContrast}`,
|
||||||
backgroundColor: theme.palette.tertiary?.main || theme.palette.background.default,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -165,21 +164,21 @@ const SettingsGlobalping = ({
|
|||||||
>
|
>
|
||||||
{t("pages.settings.globalpingSettings.rateLimitsTitle")}
|
{t("pages.settings.globalpingSettings.rateLimitsTitle")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: theme.spacing(4) }}>
|
<Typography variant="body2" sx={{ mb: theme.spacing(4) }}>
|
||||||
{t("pages.settings.globalpingSettings.rateLimitsDescription")}
|
{t("pages.settings.globalpingSettings.rateLimitsDescription")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box component="ul" sx={{ m: 0, pl: theme.spacing(8) }}>
|
<Box component="ul" sx={{ m: 0, pl: theme.spacing(8) }}>
|
||||||
<Typography component="li" variant="body2" color="text.secondary" sx={{ mb: theme.spacing(2) }}>
|
<Typography component="li" variant="body2" sx={{ mb: theme.spacing(2) }}>
|
||||||
{t("pages.settings.globalpingSettings.rateLimitNoAuth")}
|
{t("pages.settings.globalpingSettings.rateLimitNoAuth")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography component="li" variant="body2" color="text.secondary" sx={{ mb: theme.spacing(2) }}>
|
<Typography component="li" variant="body2" sx={{ mb: theme.spacing(2) }}>
|
||||||
{t("pages.settings.globalpingSettings.rateLimitAuth")}
|
{t("pages.settings.globalpingSettings.rateLimitAuth")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography component="li" variant="body2" color="text.secondary">
|
<Typography component="li" variant="body2">
|
||||||
{t("pages.settings.globalpingSettings.rateLimitSponsor")}
|
{t("pages.settings.globalpingSettings.rateLimitSponsor")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mt: theme.spacing(4) }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mt: theme.spacing(4), fontStyle: "italic" }}>
|
||||||
{t("pages.settings.globalpingSettings.rateLimitsNote")}
|
{t("pages.settings.globalpingSettings.rateLimitsNote")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in new issue
Block a user