aligned eerything to be pixel-perfect

This commit is contained in:
8BitBiscotti
2024-12-12 09:38:33 +01:00
parent dc61e02c60
commit 7eede71229
10 changed files with 84 additions and 37 deletions
+1
View File
@@ -7,6 +7,7 @@ document.addEventListener("DOMContentLoaded", function() {
document.documentElement.style.setProperty("--pxDensity", Math.max(densityWidth, densityHeight))
document.documentElement.style.setProperty("--pxDensityPx", `${Math.max(densityWidth, densityHeight)}px`)
pxDensity = getComputedStyle(document.body).getPropertyValue("--pxDensity")
pxDensityDefined = true