From e9e5b8e4b7722ea5c98b231bccf99a1e61dbb695 Mon Sep 17 00:00:00 2001 From: miguel Date: Fri, 23 Oct 2020 18:16:48 +1100 Subject: [PATCH] Fix width creeping issue. --- magloop.css | 35 ++++++++++++++++++++++++++++++++++- magloop.html | 31 +++++++++++-------------------- 2 files changed, 45 insertions(+), 21 deletions(-) diff --git a/magloop.css b/magloop.css index 26348d5..3efef3b 100644 --- a/magloop.css +++ b/magloop.css @@ -118,7 +118,7 @@ section div.antennaSide-container { } @media (orientation: landscape) { - section.gridLayoutClass { + section.gridLayoutClass { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr) 150px; @@ -153,3 +153,36 @@ section div.antennaSide-container { grid-row-end: 4; } } +/* +@media print (orientation: landscape) { + section.gridLayoutClass { + display: grid; + grid-template-columns: repeat(4, 300px); + grid-template-rows: repeat(1, 300px) 150px; + justify-items: stretch; + } + section div.chart-container { + min-height: 100%; + max-width: 100%; + max-height: 100%; + height: auto; + width: auto; + } +} + +@media print (orientation: portrait) { + section.gridLayoutClass { + display: grid; + grid-template-columns: repeat(2, 300px); + grid-template-rows: repeat(2, 300px) 150px 120px; + justify-items: stretch; + } + section div.chart-container { + min-height: 100%; + max-width: 100%; + max-height: 100%; + height: auto; + width: auto; + } +} +*/ \ No newline at end of file diff --git a/magloop.html b/magloop.html index c9619e3..8b81a7a 100644 --- a/magloop.html +++ b/magloop.html @@ -49,7 +49,7 @@ - +