fix(gui): align background image when it is larger than canvas
This commit is contained in:
parent
4a3bb97342
commit
99982c6a19
|
@ -175,6 +175,7 @@ export function MaskCanvas(props: MaskCanvasProps) {
|
||||||
const styles: React.CSSProperties = {
|
const styles: React.CSSProperties = {
|
||||||
backgroundPosition: 'top left',
|
backgroundPosition: 'top left',
|
||||||
backgroundRepeat: 'no-repeat',
|
backgroundRepeat: 'no-repeat',
|
||||||
|
backgroundSize: 'contain',
|
||||||
border: '1px solid black',
|
border: '1px solid black',
|
||||||
maxHeight: params.height.default,
|
maxHeight: params.height.default,
|
||||||
maxWidth: params.width.default,
|
maxWidth: params.width.default,
|
||||||
|
|
Loading…
Reference in New Issue