]> _ Git - fluidbook-html5.git/commitdiff
wait #7989
authorsoufiane <soufiane@cubedesigners.com>
Sun, 8 Feb 2026 21:39:17 +0000 (22:39 +0100)
committersoufiane <soufiane@cubedesigners.com>
Sun, 8 Feb 2026 21:39:17 +0000 (22:39 +0100)
js/libs/fluidbook/fluidbook.search.js
style/interface.less

index d1ba4d47ce7259e0c95c8110f0a975a4ac00eae2..afc69bfcf207e8a681294ece810a284e8f420b9c 100644 (file)
@@ -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;
index ab90da39b3c58c415333d5c2fe291f86dce83a93..cdf2413e6086a44afc948e7c311963e30a0f81cc 100644 (file)
   border-radius: 5px;
 
   .floatmode & {
-    transition: none;
+
+    &:not(.hideUp) {
+      transition: none;
+    }
 
     .searchResultsNext,
     .searchResultsPrev {