fix: remove fixed canvas dimensions in RickGamePanel for responsive design

This commit is contained in:
Chipperfluff 2025-08-24 09:49:33 +02:00
parent 816f252ccd
commit 4711f27823

View File

@ -30,8 +30,6 @@ export class RickGamePanel {
const panel = document.createElement('div')
panel.style.cssText = `width: 100%; max-width: 400px;`
this.canvas = document.createElement('canvas')
this.canvas.width = 300
this.canvas.height = 200
this.canvas.style.cssText = `width: 100%; border: 2px solid #333; background: #000; cursor: pointer;`
panel.appendChild(this.canvas)
this.container.appendChild(panel)