From 52e0441153997ff6b6a6e93ee0203bb71bb94e9e Mon Sep 17 00:00:00 2001 From: Admin Date: Tue, 22 Sep 2026 01:11:16 +0000 Subject: [PATCH] Bottom-anchor fitted Phaser canvas --- src/main.js | 4 ++-- src/style.css | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 26a626b..723b608 100644 --- a/src/main.js +++ b/src/main.js @@ -1389,7 +1389,7 @@ const game = new Phaser.Game({ }, scale: { mode: Phaser.Scale.FIT, - autoCenter: Phaser.Scale.CENTER_HORIZONTALLY, + autoCenter: Phaser.Scale.NO_CENTER, width: WIDTH, height: HEIGHT }, @@ -1400,7 +1400,7 @@ const game = new Phaser.Game({ }) window.__DOLLHOUSE__ = { - version: '0.10.3', + version: '0.10.4', game, async resetAll() { await clearGameState() diff --git a/src/style.css b/src/style.css index b850969..e130bb9 100644 --- a/src/style.css +++ b/src/style.css @@ -40,3 +40,13 @@ canvas { box-shadow: 0 6px 18px rgb(122 61 91 / 24%); } + +#game { + display: flex; + align-items: flex-end; + justify-content: center; +} +#game > canvas { + margin: 0 !important; + flex: 0 0 auto; +}