Fix js-dos canvas centering
Build & Deploy / build-and-deploy (push) Successful in 8s

This commit is contained in:
droideparanoico authored and Hermes Agent committed 2026-11-01 12:33:53 +01:00
1 parent 64a25d9f99
commit 1a0d64deda
2 files changed
+2 -4

No files matched your search

+1 -4
View File
@@ -73,6 +73,7 @@
dosCI = window.Dos(dosContainer, {
url,
autoSave: true,
renderAspect: "4/3",
// Server-backed FS persistence: in-game saves survive sessions and
// follow the player across browsers/devices. Both normal and setup
// mode share one save set so SETUP.EXE changes carry over.
@@ -253,10 +254,6 @@
@media (max-width: 640px) {
.dos-container { aspect-ratio: 4/3; max-height: 50vh; border-radius: var(--radius-sm); }
}
.dos-container :global(canvas) {
width: 100% !important;
height: 100% !important;
}
/* Overlay shown while loading / booting, covers the empty container */
.overlay {
@@ -97,6 +97,7 @@ describe("Play", () => {
const opts = dosMock.mock.calls[0][1];
expect(opts.url).toBe("/games/game-1.jsdos");
expect(opts.autoSave).toBe(true);
expect(opts.renderAspect).toBe("4/3");
// Both normal and setup bundles map to the same per-game save key
await expect(opts.fsChanges.urlToKey("/games/game-1.jsdos")).resolves.toBe("game-1");