From 88e4f0fd44dceca766052aaaed2c782feb1501aa Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Thu, 5 Sep 2024 15:29:11 +0200
Subject: [PATCH] frontend: Configure aspect-ratio directly for .preview

---
 frontend/src/main.less | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/frontend/src/main.less b/frontend/src/main.less
index f6ef265..0a96c45 100644
--- a/frontend/src/main.less
+++ b/frontend/src/main.less
@@ -71,10 +71,9 @@ main {
 }
 
 .preview {
-	/* TODO: this should all be slightly more dynamic, more the size of a real A4 paper, and the content scaled appropriately */
 	width: 95vw;
-	/* width/√2, aka A4 aspect ratio */
-	height: 67vw;
+	/* A4 aspect ratio: √2:1 */
+	aspect-ratio: 1.4142135623730951;
 
 	background-color: #fff;
 	color: #000;
-- 
GitLab