From b49e27c83efd1f0477d6e0659d69f1f4b005bf57 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 4 Sep 2025 15:31:22 +0200 Subject: [PATCH] wip #7712 @1.5 --- js/libs/fluidbook/fluidbook.menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index dea04c84..b37c7442 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -156,7 +156,7 @@ FluidbookMenu.prototype = { let $this = this; var infos = this.fluidbook.settings.pdfLinks[uid]; let c = this.getCaption('', 'nocaption', 'nocaption'); - c += '
'; + c += '
'; this.viewWrap(c, 'pdf', '', 'pdf'); if (callback != undefined) { callback(); @@ -1186,7 +1186,7 @@ FluidbookMenu.prototype = { if ($(".indexViewHolder").find('.doubleThumb:not(.simple)').length > 0) { baseWidth = 230; } - var indexWidth = Math.floor(w / baseWidth) * baseWidth; + var indexWidth = Math.max(1, Math.floor(w / baseWidth)) * baseWidth; $(".indexViewHolder").css('width', indexWidth); } -- 2.39.5