From 58e82539326d980600b8614517b8617b1a600167 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Wed, 25 Sep 2019 17:36:26 +0200 Subject: [PATCH] reset auto image-orientation for Firefox and Safari // refs #67 due to a possible bug in the fancybox library --- assets/stylesheets/lightbox.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/stylesheets/lightbox.css b/assets/stylesheets/lightbox.css index 68a4cd7..6ae842b 100644 --- a/assets/stylesheets/lightbox.css +++ b/assets/stylesheets/lightbox.css @@ -28,6 +28,15 @@ a.lightbox_preview img { box-shadow: 0 0 50px #222; } +/* reset auto image-orientation for Firefox and Safari + * due to a possible bug in the fancybox library + * https://github.com/paginagmbh/redmine_lightbox2/issues/67 + */ +div.attachments div.images img, +img.fancybox-image { + image-orientation: initial; +} + /* move prev/next buttons outside * fixes issue #5