File tree 1 file changed +13
-12
lines changed
1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 874
874
const configureWebviewWindow = (webview : WebviewWindow ) => {
875
875
if (monitor ) {
876
876
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
+ };
889
890
width = width * factor ;
890
891
height = height * factor ;
891
892
webview .setPosition (
You can’t perform that action at this time.
0 commit comments