formatting of error message box to align buttons

This commit is contained in:
proddy
2025-11-20 14:25:25 +01:00
parent fbfacc5ed5
commit 8422521975
7 changed files with 11 additions and 8 deletions

View File

@@ -726,8 +726,9 @@ const Customizations = () => {
{devices && renderDeviceList()} {devices && renderDeviceList()}
{selectedDevice !== -1 && !rename && renderDeviceData()} {selectedDevice !== -1 && !rename && renderDeviceData()}
{restartNeeded ? ( {restartNeeded ? (
<MessageBox my={2} level="warning" message={LL.RESTART_TEXT(0)}> <MessageBox level="warning" message={LL.RESTART_TEXT(0)}>
<Button <Button
sx={{ ml: 2 }}
startIcon={<PowerSettingsNewIcon />} startIcon={<PowerSettingsNewIcon />}
variant="contained" variant="contained"
color="error" color="error"

View File

@@ -263,7 +263,7 @@ const Dashboard = memo(() => {
return ( return (
<> <>
{!data.connected && ( {!data.connected && (
<MessageBox mb={2} level="error" message={LL.EMS_BUS_WARNING()} /> <MessageBox level="error" message={LL.EMS_BUS_WARNING()} />
)} )}
{data.connected && data.nodes.length > 0 && !hasFavEntities && ( {data.connected && data.nodes.length > 0 && !hasFavEntities && (

View File

@@ -857,8 +857,9 @@ const ApplicationSettings = () => {
</Grid> </Grid>
{restartNeeded && ( {restartNeeded && (
<MessageBox my={2} level="warning" message={LL.RESTART_TEXT(0)}> <MessageBox level="warning" message={LL.RESTART_TEXT(0)}>
<Button <Button
sx={{ ml: 2 }}
startIcon={<PowerSettingsNewIcon />} startIcon={<PowerSettingsNewIcon />}
variant="contained" variant="contained"
color="error" color="error"

View File

@@ -355,8 +355,9 @@ const NetworkSettings = () => {
</> </>
)} )}
{restartNeeded && ( {restartNeeded && (
<MessageBox my={2} level="warning" message={LL.RESTART_TEXT(0)}> <MessageBox level="warning" message={LL.RESTART_TEXT(0)}>
<Button <Button
sx={{ ml: 2 }}
startIcon={<PowerSettingsNewIcon />} startIcon={<PowerSettingsNewIcon />}
variant="contained" variant="contained"
color="error" color="error"

View File

@@ -94,7 +94,7 @@ const WiFiNetworkSelector = ({ networkList }: { networkList: WiFiNetworkList })
); );
if (networkList.networks.length === 0) { if (networkList.networks.length === 0) {
return <MessageBox mt={2} mb={1} message={LL.NETWORK_NO_WIFI()} level="info" />; return <MessageBox message={LL.NETWORK_NO_WIFI()} level="info" />;
} }
return <List>{networkList.networks.map(renderNetwork)}</List>; return <List>{networkList.networks.map(renderNetwork)}</List>;

View File

@@ -136,10 +136,10 @@ const SystemMonitor = () => {
</Typography> </Typography>
{errorMessage ? ( {errorMessage ? (
<MessageBox my={2} level="error" message={errorMessage}> <MessageBox level="error" message={errorMessage}>
<Button <Button
size="small"
sx={{ ml: 2 }} sx={{ ml: 2 }}
size="small"
startIcon={<CancelIcon />} startIcon={<CancelIcon />}
variant="contained" variant="contained"
color="error" color="error"

View File

@@ -16,7 +16,7 @@ const FormLoaderComponent = ({ errorMessage, onRetry }: FormLoaderProps) => {
if (errorMessage) { if (errorMessage) {
return ( return (
<MessageBox my={2} level="error" message={errorMessage}> <MessageBox level="error" message={errorMessage}>
{onRetry && ( {onRetry && (
<Button <Button
sx={{ ml: 2 }} sx={{ ml: 2 }}