feat: photo editor title
This commit is contained in:
parent
d69530b340
commit
265e5f84c2
|
@ -614,5 +614,6 @@
|
||||||
"COLORS": "Colors",
|
"COLORS": "Colors",
|
||||||
"FLIP": "Flip",
|
"FLIP": "Flip",
|
||||||
"ROTATION": "Rotation",
|
"ROTATION": "Rotation",
|
||||||
"RESET": "Reset"
|
"RESET": "Reset",
|
||||||
|
"PHOTO_EDITOR": "Photo Editor"
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import {
|
||||||
IconButton,
|
IconButton,
|
||||||
Tab,
|
Tab,
|
||||||
Tabs,
|
Tabs,
|
||||||
|
Typography,
|
||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import {
|
import {
|
||||||
|
@ -217,41 +218,46 @@ const ImageEditorOverlay = (props: IProps) => {
|
||||||
backdropFilter: 'blur(5px)',
|
backdropFilter: 'blur(5px)',
|
||||||
}}
|
}}
|
||||||
open>
|
open>
|
||||||
<Box
|
<Box padding="3rem" width="100%" height="100%">
|
||||||
display="inline-block"
|
<Typography variant="h2" fontWeight="bold">
|
||||||
width="100%"
|
{t('PHOTO_EDITOR')}
|
||||||
height="100%"
|
</Typography>
|
||||||
overflow="hidden"
|
|
||||||
padding="3rem"
|
|
||||||
boxSizing={'border-box'}>
|
|
||||||
<Box
|
<Box
|
||||||
height="100%"
|
display="inline-block"
|
||||||
width="100%"
|
width="100%"
|
||||||
ref={parentRef}
|
height="100%"
|
||||||
display="flex"
|
overflow="hidden"
|
||||||
alignItems="center"
|
boxSizing={'border-box'}>
|
||||||
justifyContent="center">
|
<Box
|
||||||
{(fileURL === null || canvasLoading) && (
|
height="100%"
|
||||||
<CircularProgress />
|
width="100%"
|
||||||
)}
|
ref={parentRef}
|
||||||
|
display="flex"
|
||||||
|
alignItems="center"
|
||||||
|
justifyContent="center">
|
||||||
|
{(fileURL === null || canvasLoading) && (
|
||||||
|
<CircularProgress />
|
||||||
|
)}
|
||||||
|
|
||||||
<canvas
|
<canvas
|
||||||
ref={canvasRef}
|
ref={canvasRef}
|
||||||
style={{
|
style={{
|
||||||
objectFit: 'contain',
|
objectFit: 'contain',
|
||||||
display:
|
display:
|
||||||
fileURL === null || canvasLoading
|
fileURL === null ||
|
||||||
? 'none'
|
canvasLoading
|
||||||
: 'block',
|
? 'none'
|
||||||
position: 'absolute',
|
: 'block',
|
||||||
}}
|
position: 'absolute',
|
||||||
/>
|
}}
|
||||||
<canvas
|
/>
|
||||||
ref={originalSizeCanvasRef}
|
<canvas
|
||||||
style={{
|
ref={originalSizeCanvasRef}
|
||||||
display: 'none',
|
style={{
|
||||||
}}
|
display: 'none',
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
<Box
|
<Box
|
||||||
|
|
Loading…
Reference in a new issue