From 796f24b29c22344f840d7d1660e45713e702f5fc Mon Sep 17 00:00:00 2001
From: Janek <development@superyu.xyz>
Date: Tue, 2 Jan 2024 01:30:59 +0100
Subject: [PATCH] Update styles.css

Fix to get old canvas scaling behaviour back
---
 webradar/styles.css | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/webradar/styles.css b/webradar/styles.css
index eb9453d..f999d16 100644
--- a/webradar/styles.css
+++ b/webradar/styles.css
@@ -1,19 +1,20 @@
-body, html {
-    height: 100%;
+body {    
     margin: 0;
+    overflow: hidden;
     display: flex;
     justify-content: center;
     align-items: center;
+    height: 100vh;
     background-color: #000000; /* Change the background color as needed */
 }
 
 #canvasContainer {
     aspect-ratio: 1 / 1;
-    width: 100vh; /* Initial half-screen size */
     position: relative;
     overflow: hidden;
     transition: width 0.5s ease; /* Smooth transition */
     float: left;
+    object-fit: contain;
 }
 
 canvas {