Skip to content

Commit

Permalink
Scaling issue fix (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
deusprogrammer committed Nov 9, 2023
1 parent 26e0b3d commit b977f2d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/renderer/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ const imageMap = {
whatthedub: whatTheDubImage,
};

// Fix Windows scaling
document
.querySelector('meta[name=viewport]')
.setAttribute(
'content',
'width=device-width, initial-scale=' +
1 / window.devicePixelRatio +
', maximum-scale=1.0, user-scalable=0'
);

let App = (props) => {
const navigate = useNavigate();
const location = useLocation();
Expand Down
1 change: 1 addition & 0 deletions src/renderer/index.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" />
<meta charset="utf-8" />
<meta
http-equiv="Content-Security-Policy"
Expand Down

0 comments on commit b977f2d

Please sign in to comment.