From 4711f278237abcbe24b6d39ac9bbf8bb3124634e Mon Sep 17 00:00:00 2001 From: lordlogo2002 Date: Sun, 24 Aug 2025 09:49:33 +0200 Subject: [PATCH] fix: remove fixed canvas dimensions in RickGamePanel for responsive design --- source/src/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/src/index.tsx b/source/src/index.tsx index 8cecf56..349f90c 100644 --- a/source/src/index.tsx +++ b/source/src/index.tsx @@ -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)