generated from projects/testosmaximus
fix: remove fixed canvas dimensions in RickGamePanel for responsive design
This commit is contained in:
parent
816f252ccd
commit
4711f27823
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user