Update mui dependencies
This commit is contained in:
@@ -15,7 +15,11 @@ export const Progress = ({ progress, showText = true }: { progress: number; show
|
||||
<CircularProgress variant="determinate" value={progress} />
|
||||
{showText && (
|
||||
<Box sx={{ position: 'absolute' }}>
|
||||
<Typography fontSize="0.8rem">{`${Math.round(progress)}%`}</Typography>
|
||||
<Typography
|
||||
sx={{
|
||||
fontSize: '0.8rem',
|
||||
}}
|
||||
>{`${Math.round(progress)}%`}</Typography>
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
@@ -104,7 +104,13 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef<HTML
|
||||
<>
|
||||
{(isLoading || hasError) && (
|
||||
<Box sx={spinnerStyle}>
|
||||
<Stack height="100%" alignItems="center" justifyContent="center">
|
||||
<Stack
|
||||
sx={{
|
||||
height: '100%',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
}}
|
||||
>
|
||||
{isLoading && <CircularProgress thickness={5} />}
|
||||
{hasError && isLoading === false && (
|
||||
<>
|
||||
@@ -128,10 +134,13 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef<HTML
|
||||
|
||||
{showMissingImageIcon ? (
|
||||
<Stack
|
||||
height="100%"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
sx={{ background: (theme) => theme.palette.background.default, ...spinnerStyle }}
|
||||
sx={{
|
||||
height: '100%',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
background: (theme) => theme.palette.background.default,
|
||||
...spinnerStyle,
|
||||
}}
|
||||
>
|
||||
<ImageIcon fontSize="large" />
|
||||
</Stack>
|
||||
|
||||
@@ -63,7 +63,13 @@ export const VersionUpdateInfoDialog = ({
|
||||
<DialogContentText>{info}</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Stack sx={{ width: '100%' }} direction="row" justifyContent={changelogUrl ? 'space-between' : 'end'}>
|
||||
<Stack
|
||||
direction="row"
|
||||
sx={{
|
||||
justifyContent: changelogUrl ? 'space-between' : 'end',
|
||||
width: '100%',
|
||||
}}
|
||||
>
|
||||
{changelogUrl && (
|
||||
<Button href={changelogUrl} target="_blank" rel="noreferrer">
|
||||
{t('global.button.changelog')}
|
||||
|
||||
Reference in New Issue
Block a user