From b977f2d48847335613ede7a79e3b8ac1e844cefe Mon Sep 17 00:00:00 2001 From: Michael Main Date: Wed, 8 Nov 2023 19:31:49 -0600 Subject: [PATCH] Scaling issue fix (maybe) --- src/renderer/App.jsx | 10 ++++++++++ src/renderer/index.ejs | 1 + 2 files changed, 11 insertions(+) diff --git a/src/renderer/App.jsx b/src/renderer/App.jsx index 4847245..739bef2 100644 --- a/src/renderer/App.jsx +++ b/src/renderer/App.jsx @@ -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(); diff --git a/src/renderer/index.ejs b/src/renderer/index.ejs index 6e45353..006bcd2 100644 --- a/src/renderer/index.ejs +++ b/src/renderer/index.ejs @@ -1,6 +1,7 @@ +