Skip to content

Commit aa8a15c

Browse files
committed
Merge branch 'main' into renderer
2 parents 7d78b2b + 74605c5 commit aa8a15c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/routes/(app)/+page.svelte

+13-12
Original file line numberDiff line numberDiff line change
@@ -874,18 +874,19 @@
874874
const configureWebviewWindow = (webview: WebviewWindow) => {
875875
if (monitor) {
876876
const factor = 0.8;
877-
let { width, height } = mediaOptions.overrideResolution || preferences.aspectRatio
878-
? fit(
879-
(mediaOptions.overrideResolution ?? preferences.aspectRatio)![0],
880-
(mediaOptions.overrideResolution ?? preferences.aspectRatio)![1],
881-
monitor.size.width,
882-
monitor.size.height,
883-
true,
884-
)
885-
: {
886-
width: monitor.size.width,
887-
height: monitor.size.height,
888-
};
877+
let { width, height } =
878+
mediaOptions.overrideResolution || preferences.aspectRatio
879+
? fit(
880+
(mediaOptions.overrideResolution ?? preferences.aspectRatio)![0],
881+
(mediaOptions.overrideResolution ?? preferences.aspectRatio)![1],
882+
monitor.size.width,
883+
monitor.size.height,
884+
true,
885+
)
886+
: {
887+
width: monitor.size.width,
888+
height: monitor.size.height,
889+
};
889890
width = width * factor;
890891
height = height * factor;
891892
webview.setPosition(

0 commit comments

Comments
 (0)