Restore aspect-correct Phaser viewport

This commit is contained in:
Admin 2026-09-22 01:09:09 +00:00
parent f924e2439a
commit 0a778685e1
2 changed files with 3 additions and 13 deletions

View File

@ -1388,8 +1388,8 @@ const game = new Phaser.Game({
pixelArt: false pixelArt: false
}, },
scale: { scale: {
mode: Phaser.Scale.NONE, mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.NO_CENTER, autoCenter: Phaser.Scale.CENTER_HORIZONTALLY,
width: WIDTH, width: WIDTH,
height: HEIGHT height: HEIGHT
}, },
@ -1400,7 +1400,7 @@ const game = new Phaser.Game({
}) })
window.__DOLLHOUSE__ = { window.__DOLLHOUSE__ = {
version: '0.10.2', version: '0.10.3',
game, game,
async resetAll() { async resetAll() {
await clearGameState() await clearGameState()

View File

@ -40,13 +40,3 @@ canvas {
box-shadow: 0 6px 18px rgb(122 61 91 / 24%); 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;
}