From 4ddb56984f3cb704ae76078f7323765db1f4f681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sat, 22 Oct 2022 17:44:57 +0100 Subject: [PATCH] feat: small scaling change --- examples/web/react/components/display/display.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/web/react/components/display/display.tsx b/examples/web/react/components/display/display.tsx index 116307f8..0c97e9c5 100644 --- a/examples/web/react/components/display/display.tsx +++ b/examples/web/react/components/display/display.tsx @@ -38,13 +38,9 @@ export const Display: FC<DisplayProps> = ({ <div className="display-frame"> <canvas id="display-canvas" - className="canvas" + className="display-canvas" width={options.width * options.scale} height={options.height * options.scale} - style={{ - width: `${options.width}px`, - height: `${options.height}px` - }} ></canvas> </div> </div> -- GitLab