From a9c87e887358704e0de48460341b9665e892892e Mon Sep 17 00:00:00 2001 From: vvandenb Date: Sat, 11 Mar 2023 18:33:28 +0100 Subject: [PATCH] * Pong canvas fixed for big screens and horizontally aligned --- front/volume/src/components/Pong/GameComponent.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/front/volume/src/components/Pong/GameComponent.svelte b/front/volume/src/components/Pong/GameComponent.svelte index d2fc438..8c7ec6b 100644 --- a/front/volume/src/components/Pong/GameComponent.svelte +++ b/front/volume/src/components/Pong/GameComponent.svelte @@ -49,8 +49,14 @@ } .renderCanvas { + max-width: 1000px; width: 100%; height: auto; + padding-left: 0; + padding-right: 0; + margin-left: auto; + margin-right: auto; + display: block; touch-action: none; }