Skip to content

Commit ce87af4

Browse files
committed
fix: scale unavailable with no rotation
1 parent 0dd7397 commit ce87af4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

browser/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ const App = () => {
186186
id="video"
187187
className={clsx(videoRotate === 0 ? [videoStyle, "min-h-[480px] min-w-[640px]"] : "hidden")}
188188
ref={videoRef}
189+
style={{
190+
transform: `scale(${videoScale})`,
191+
}}
189192
autoPlay
190193
playsInline
191194
onLoadedMetadata={setCanvas}

desktop/src/renderer/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ const App = (): ReactElement => {
199199
id="video"
200200
className={clsx(videoRotate === 0 ? [videoStyle, 'min-h-[480px] min-w-[640px]'] : 'hidden')}
201201
ref={videoRef}
202+
style={{
203+
transform: `scale(${videoScale})`
204+
}}
202205
autoPlay
203206
playsInline
204207
onLoadedMetadata={setCanvas}

0 commit comments

Comments
 (0)