fix: revert ALL new browser changes

This commit is contained in:
karishmas6
2024-10-11 23:12:32 +05:30
parent 9ee7afc353
commit d8e269e1cd
6 changed files with 32 additions and 42 deletions

View File

@@ -360,15 +360,15 @@ export const BrowserWindow = () => {
<Highlighter
unmodifiedRect={highlighterData?.rect}
displayedSelector={highlighterData?.selector}
width={900}
height={300}
width={width}
height={height}
canvasRect={canvasRef.current.getBoundingClientRect()}
/>
: null}
<Canvas
onCreateRef={setCanvasReference}
width={900}
height={300}
width={width}
height={height}
/>
</div>
);
@@ -383,7 +383,7 @@ const drawImage = (image: string, canvas: HTMLCanvasElement): void => {
img.src = image;
img.onload = () => {
URL.revokeObjectURL(img.src);
ctx?.drawImage(img, 0, 0, 900, 300);
ctx?.drawImage(img, 0, 0, 1280, 720);
};
};