]> _ Git - fluidbook-html5.git/commitdiff
wait #5831 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Mar 2023 15:17:01 +0000 (17:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Mar 2023 15:17:01 +0000 (17:17 +0200)
js/libs/fluidbook/fluidbook.menu.js
style/fluidbook.less

index 8167ed45d5bde2fe1654c24fa3ed1de1e6c6ea7f..ed7a72dd0e4aa0d0978febf4f55a27be42bf41b5 100644 (file)
@@ -1057,7 +1057,12 @@ FluidbookMenu.prototype = {
         }
 
         if ($(".indexViewHolder").length > 0) {
-            var indexWidth = Math.floor(ww / 230) * 230;
+            let baseWidth = 130;
+            if ($(".indexViewHolder").find('.doubleThumb:not(.simple)').length > 0) {
+                baseWidth = 230;
+            }
+            var indexWidth = Math.floor(w / baseWidth) * baseWidth;
+
             $(".indexViewHolder").css('width', indexWidth);
         }
 
index 93fa9634f23164b889a2c7e4d8ac07465a9218b0..4c4fbaccb54a4a18513aa006ff71de27cf50daa9 100644 (file)
@@ -2073,6 +2073,10 @@ form input[type="text"], form input[type="email"] {
         left: 50px;
       }
     }
+
+    .thumb {
+      margin-right: 0 !important;
+    }
   }
 
   &.here {