Skip to content

Commit b977f2d

Browse files
Scaling issue fix (maybe)
1 parent 26e0b3d commit b977f2d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/renderer/App.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ const imageMap = {
4040
whatthedub: whatTheDubImage,
4141
};
4242

43+
// Fix Windows scaling
44+
document
45+
.querySelector('meta[name=viewport]')
46+
.setAttribute(
47+
'content',
48+
'width=device-width, initial-scale=' +
49+
1 / window.devicePixelRatio +
50+
', maximum-scale=1.0, user-scalable=0'
51+
);
52+
4353
let App = (props) => {
4454
const navigate = useNavigate();
4555
const location = useLocation();

src/renderer/index.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<meta name="viewport" />
45
<meta charset="utf-8" />
56
<meta
67
http-equiv="Content-Security-Policy"

0 commit comments

Comments
 (0)