Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Fixing resize again. Fixes #183. (#184)
Jake Archibalda1f0b81dfffe
diff --git a/src/components/Output/index.tsx b/src/components/Output/index.tsxindex 96a12511..fe461e2d 100644--- a/src/components/Output/index.tsx+++ b/src/components/Output/index.tsx@@ -170,6 +170,7 @@ export default class Output extends Component<Props, State> {ref={linkRef(this, 'pinchZoomLeft')}><canvas+ class={style.outputCanvas}ref={linkRef(this, 'canvasLeft')}width={leftImg.width}height={leftImg.height}@@ -182,6 +183,7 @@ export default class Output extends Component<Props, State> {</pinch-zoom><pinch-zoom ref={linkRef(this, 'pinchZoomRight')}><canvas+ class={style.outputCanvas}ref={linkRef(this, 'canvasRight')}width={rightImg.width}height={rightImg.height}diff --git a/src/components/Output/style.scss b/src/components/Output/style.scssindex 5c760c96..511d0f0f 100644--- a/src/components/Output/style.scss+++ b/src/components/Output/style.scss@@ -137,3 +137,7 @@ Note: These styles are temporary. They will be replaced before going live.border-bottom-right-radius: 0;}}++.output-canvas {+ flex-shrink: 0;+}