From 7d9f970a8b5acf0de12d221b6ac0bf1599054a47 Mon Sep 17 00:00:00 2001 From: soufiane Date: Sun, 8 Feb 2026 22:39:17 +0100 Subject: [PATCH] wait #7989 --- js/libs/fluidbook/fluidbook.search.js | 16 +++++++++++++++- style/interface.less | 5 ++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.search.js b/js/libs/fluidbook/fluidbook.search.js index d1ba4d47..afc69bfc 100644 --- a/js/libs/fluidbook/fluidbook.search.js +++ b/js/libs/fluidbook/fluidbook.search.js @@ -110,7 +110,11 @@ FluidbookSearch.prototype = { }); $(document).on(this.fluidbook.input.clickEvent, '.searchResultsNavClose', function () { - $this.closeResultsNav(); + if($this.fluidbook.floatmode) { + $this.closeResultsNavInFloatMode(); + }else { + $this.closeResultsNav(); + } }); $(this.fluidbook).on('fluidbook.resize.orientation', function (event, details) { @@ -207,6 +211,16 @@ FluidbookSearch.prototype = { $('body').removeClass(this.resultsActiveClass); }, + closeResultsNavInFloatMode: function() { + this.hideableElements.removeClass('hidden'); + this.resultsNav.addClass('hideUp').addClass('hidden'); + setTimeout(() => { + this.resultsNav.removeClass('hideUp'); + }, 800); + this.closeSearch(); + $('body').removeClass(this.resultsActiveClass); + }, + nextResultsPage: function () { var currentIndex = this.resultNavPages.indexOf(fluidbook.currentPage); var nextIndex = currentIndex + 1; diff --git a/style/interface.less b/style/interface.less index ab90da39..cdf2413e 100644 --- a/style/interface.less +++ b/style/interface.less @@ -177,7 +177,10 @@ border-radius: 5px; .floatmode & { - transition: none; + + &:not(.hideUp) { + transition: none; + } .searchResultsNext, .searchResultsPrev { -- 2.39.5