diff --git a/TODO.md b/TODO.md index c89b301..2449ecb 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,7 @@ - [x] Update GH Workflow to be by push ## Next -- [ ] Fix css bug on chromium +- [x] Fix css bug on chromium - [ ] Add user page to show all projects ## Later diff --git a/src/client/pico8-client/Pico8Console.tsx b/src/client/pico8-client/Pico8Console.tsx index 0c89043..04309e0 100644 --- a/src/client/pico8-client/Pico8Console.tsx +++ b/src/client/pico8-client/Pico8Console.tsx @@ -18,6 +18,11 @@ export const Pico8Console = forwardRef((props: { carts: PicoCart[] }, forwardedR picoConsole.canvas.tabIndex=0; if (ref.current) { ref.current.appendChild(picoConsole.canvas); + + // Set the width and height because pico8 adds them as properties on chrome-based browsers + picoConsole.canvas.style.width = ""; + picoConsole.canvas.style.height = ""; + picoConsole.canvas.focus(); } setHandle(picoConsole);