Skip to content

Commit

Permalink
fix(gui): align background image when it is larger than canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 20, 2023
1 parent 4a3bb97 commit 99982c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui/src/components/input/MaskCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export function MaskCanvas(props: MaskCanvasProps) {
const styles: React.CSSProperties = {
backgroundPosition: 'top left',
backgroundRepeat: 'no-repeat',
backgroundSize: 'contain',
border: '1px solid black',
maxHeight: params.height.default,
maxWidth: params.width.default,
Expand Down

0 comments on commit 99982c6

Please sign in to comment.