From c8bf43b7f9fab4d8fb3305a7784633781c5e87ed Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Fri, 10 Nov 2023 23:34:30 +0100 Subject: [PATCH] PhotoPage: fixed alignment for panoramas (now to simplify...) --- public/css/default.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/css/default.css b/public/css/default.css index 399c8bf6..f47dac31 100644 --- a/public/css/default.css +++ b/public/css/default.css @@ -400,11 +400,15 @@ footer a { #photo-figure { position: relative; object-fit: contain; + height: 97vh; + object-position: center center; +} +#photo-figure img { + object-position: center center; } #photo-figure img.normal-photo { border: none; cursor: -moz-zoom-in; - display: inline-block; object-fit: contain; z-index: 20; position: absolute; @@ -440,7 +444,7 @@ figure.landscape-figure img.blur-photo { figure.panorama-figure img.normal-photo, figure.panorama-figure img.blur-photo { width: 100%; - height: auto; + height: 100%; } #previous_photo, #next_photo {