From cd0f86f9a218ea8e02ce8b666968c2d4b5f2838a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Marchal?= Date: Sat, 30 Jan 2021 18:03:25 +0100 Subject: [PATCH] Overlapping caption on mobile fixed fixes #1 --- scripts/explorer.js | 3 +++ scripts/exposition.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/explorer.js b/scripts/explorer.js index 0bdeac2..d9e4b25 100644 --- a/scripts/explorer.js +++ b/scripts/explorer.js @@ -407,6 +407,9 @@ jQuery(document).ready(function($) arrows: false, transitionEffect: "fade", baseClass: 'fancybox-custom-layout', + mobile: { + preventCaptionOverlap: true, + }, caption: function(instance, item) { diff --git a/scripts/exposition.js b/scripts/exposition.js index d0fd9b5..1c5109f 100644 --- a/scripts/exposition.js +++ b/scripts/exposition.js @@ -21,6 +21,9 @@ jQuery(document).ready(function($) arrows: false, transitionEffect: "fade", baseClass: 'fancybox-custom-layout', + mobile: { + preventCaptionOverlap: true, + }, caption: function(instance, item) {