From 0a778685e15d7c898fadc6e7519a859ce2633e02 Mon Sep 17 00:00:00 2001 From: Admin Date: Tue, 22 Sep 2026 01:09:09 +0000 Subject: [PATCH] Restore aspect-correct Phaser viewport --- src/main.js | 6 +++--- src/style.css | 10 ---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/main.js b/src/main.js index f0d7d46..26a626b 100644 --- a/src/main.js +++ b/src/main.js @@ -1388,8 +1388,8 @@ const game = new Phaser.Game({ pixelArt: false }, scale: { - mode: Phaser.Scale.NONE, - autoCenter: Phaser.Scale.NO_CENTER, + mode: Phaser.Scale.FIT, + autoCenter: Phaser.Scale.CENTER_HORIZONTALLY, width: WIDTH, height: HEIGHT }, @@ -1400,7 +1400,7 @@ const game = new Phaser.Game({ }) window.__DOLLHOUSE__ = { - version: '0.10.2', + version: '0.10.3', game, async resetAll() { await clearGameState() diff --git a/src/style.css b/src/style.css index 52d6b53..b850969 100644 --- a/src/style.css +++ b/src/style.css @@ -40,13 +40,3 @@ canvas { box-shadow: 0 6px 18px rgb(122 61 91 / 24%); } -#game { - display: flex; - align-items: stretch; - justify-content: center; -} -#game > canvas { - width: 100% !important; - height: 100% !important; - margin: 0 !important; -}