From 0f21f3118bedee89097294ea3dda9607a3717e6e Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 6 Apr 2020 16:00:01 +0200 Subject: [PATCH] Fix lightbox errors --- customize.dist/src/less2/include/modals-ui-elements.less | 1 + www/common/inner/common-mediatag.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/customize.dist/src/less2/include/modals-ui-elements.less b/customize.dist/src/less2/include/modals-ui-elements.less index 24906d576..62b175f0e 100644 --- a/customize.dist/src/less2/include/modals-ui-elements.less +++ b/customize.dist/src/less2/include/modals-ui-elements.less @@ -140,6 +140,7 @@ } pre.mermaid { overflow: unset; + margin-bottom: 0; } .cp-spinner { border-color: @colortheme_logo-1; diff --git a/www/common/inner/common-mediatag.js b/www/common/inner/common-mediatag.js index 0d6f768af..d86b481cd 100644 --- a/www/common/inner/common-mediatag.js +++ b/www/common/inner/common-mediatag.js @@ -299,9 +299,11 @@ define([ show(i); var previous = function () { + if (i === 0) { return; } show(i - 1); }; var next = function () { + if (i === tags.length - 1) { return; } show(i + 1); }; $left.click(previous);