From c991f05dd354f99d365893769740fc4610705a89 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 12 Mar 2023 12:58:58 +0100 Subject: [PATCH] ViewPhoto: rework solution to work for panoramas, too --- public/css/default.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/css/default.css b/public/css/default.css index d8294af..3aabe66 100644 --- a/public/css/default.css +++ b/public/css/default.css @@ -433,14 +433,16 @@ footer a { text-align: center; } #photo_frame a { - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); - cursor: -moz-zoom-in; - display: inline-block; + } #photo_frame a img { border: none; - display: block; + box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); + cursor: -moz-zoom-in; + display: inline-block; height: 97vh; + max-width: 100%; + object-fit: contain; width: auto; }