+
{
getText === true || getList === true ? (
{
: null}
@@ -554,7 +554,7 @@ const drawImage = (image: string, canvas: HTMLCanvasElement): void => {
img.src = image;
img.onload = () => {
URL.revokeObjectURL(img.src);
- ctx?.drawImage(img, 0, 0, window.innerWidth * 0.75, window.innerHeight * 0.64);
+ ctx?.drawImage(img, 0, 0, canvas.width, canvas.height);
};
};
diff --git a/src/components/recorder/canvas.tsx b/src/components/recorder/canvas.tsx
index 12464d9a..4cd990f1 100644
--- a/src/components/recorder/canvas.tsx
+++ b/src/components/recorder/canvas.tsx
@@ -78,7 +78,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
}, [getText, getList]);
useEffect(() => {
- coordinateMapper.updateDimensions(window.innerWidth * 0.75, window.innerHeight * 0.64);
+ coordinateMapper.updateDimensions(window.innerWidth * 0.7, window.innerHeight * 0.64);
}, []);
useEffect(() => {
diff --git a/src/components/run/InterpretationLog.tsx b/src/components/run/InterpretationLog.tsx
index 70dc430b..e42ef1e3 100644
--- a/src/components/run/InterpretationLog.tsx
+++ b/src/components/run/InterpretationLog.tsx
@@ -142,7 +142,7 @@ export const InterpretationLog: React.FC
= ({ isOpen, se
background: '#ff00c3',
border: 'none',
padding: '10px 20px',
- width: "100%",
+ width: window.innerWidth * 0.7,
overflow: 'hidden',
textAlign: 'left',
justifyContent: 'flex-start',
@@ -165,7 +165,7 @@ export const InterpretationLog: React.FC = ({ isOpen, se
color: `${darkMode ? 'white' : 'black'}`,
padding: '10px',
height: window.innerHeight * 0.7,
- width: window.innerWidth * 0.75,
+ width: window.innerWidth * 0.7,
display: 'flex',
borderRadius: '10px 10px 0 0',
},
diff --git a/src/context/browserDimensions.tsx b/src/context/browserDimensions.tsx
index c2c744e1..971edf03 100644
--- a/src/context/browserDimensions.tsx
+++ b/src/context/browserDimensions.tsx
@@ -7,7 +7,7 @@ interface BrowserDimensions {
};
class BrowserDimensionsStore implements Partial {
- width: number = window.innerWidth * 0.75;
+ width: number = window.innerWidth * 0.7;
height: number = window.innerHeight * 0.64;
};
diff --git a/src/helpers/coordinateMapper.ts b/src/helpers/coordinateMapper.ts
index dad27fd4..3cb7ffde 100644
--- a/src/helpers/coordinateMapper.ts
+++ b/src/helpers/coordinateMapper.ts
@@ -7,7 +7,7 @@ export class CoordinateMapper {
private browserHeight: number;
constructor(
- canvasWidth: number = window.innerWidth * 0.75,
+ canvasWidth: number = window.innerWidth * 0.7,
canvasHeight: number = window.innerHeight * 0.64,
browserWidth: number = BROWSER_DEFAULT_WIDTH,
browserHeight: number = BROWSER_DEFAULT_HEIGHT