From: soufiane Date: Sun, 8 Feb 2026 21:39:17 +0000 (+0100) Subject: wait #7989 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7d9f970a8b5acf0de12d221b6ac0bf1599054a47;p=fluidbook-html5.git wait #7989 --- 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 {