style: adjust confirm dialog & web ui settings dialog (#821)

This commit is contained in:
Damian Johnson 2024-04-03 23:19:00 +08:00 committed by GitHub
parent 9610dcce20
commit 5f25e027c4
2 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export const ConfirmViewer = (props: Props) => {
<Dialog open={open} onClose={onClose} maxWidth="xs" fullWidth> <Dialog open={open} onClose={onClose} maxWidth="xs" fullWidth>
<DialogTitle>{t(title)}</DialogTitle> <DialogTitle>{t(title)}</DialogTitle>
<DialogContent sx={{ width: "95%", pb: 1, userSelect: "text" }}> <DialogContent sx={{ pb: 1, userSelect: "text" }}>
{t(message)} {t(message)}
</DialogContent> </DialogContent>

View File

@ -90,6 +90,8 @@ export const WebUIItem = (props: Props) => {
title={value} title={value}
color={value ? "text.primary" : "text.secondary"} color={value ? "text.primary" : "text.secondary"}
sx={({ palette }) => ({ sx={({ palette }) => ({
overflow: "hidden",
textOverflow: "ellipsis",
"> span": { "> span": {
color: palette.primary.main, color: palette.primary.main,
}, },