diff --git a/www/index.php b/www/index.php index 2203a46..b3ef2a6 100644 --- a/www/index.php +++ b/www/index.php @@ -45,12 +45,12 @@ $doorTime = date("H:i", $doorEntry->time); .iframe-container { position: relative; overflow: hidden; - width: 100%; - padding-top: 30%; + max-width: 100%; + max-height: 100%; + aspect-ratio: 16/9; margin: 0 auto; } - /* Then style the iframe to fit in the container div with full height and width */ .responsive-iframe { position: absolute; top: 0; @@ -58,13 +58,8 @@ $doorTime = date("H:i", $doorEntry->time); bottom: 0; right: 0; width: 100%; - height: 100%; + aspect-ratio: 16/9; } - @media (max-width: 768px) { - .iframe-container { - padding-top: 0; - } - }