]> _ Git - fluidbook-html5.git/commitdiff
wait #5243 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Apr 2022 09:48:57 +0000 (11:48 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Apr 2022 09:48:57 +0000 (11:48 +0200)
js/libs/fluidbook/fluidbook.menu.js
style/bookmarks.less

index db0bfe88054733637422d1e1ff02205c2361b9a9..ba65882a3e8b04ba9119b5a91140642cbc597b6b 100644 (file)
@@ -732,8 +732,6 @@ FluidbookMenu.prototype = {
                 fullscreen = (w >= ww * 0.9);
                 break;
             case 'index':
-                var indexWidth = Math.floor(ww / 230) * 230;
-                $(".indexViewHolder").css('width', indexWidth);
                 if (this.fluidbook.mobilefirst.enabled) {
                     var cw = 10 + 130 * this.fluidbook.settings.pages;
                     fullscreen = (cw >= ww * 0.9);
@@ -1013,6 +1011,11 @@ FluidbookMenu.prototype = {
                 break;
         }
 
+        if ($(".indexViewHolder").length > 0) {
+            var indexWidth = Math.floor(ww / 230) * 230;
+            $(".indexViewHolder").css('width', indexWidth);
+        }
+
         var captionHeight = 0;
         m.find('.caption, .fixed, .fonctions').each(function () {
             captionHeight += $(this).outerHeight();
index 5316a00ebecf50bad40ab3076ca46786ae273f8d..88fb3b01dfc7ddef4165e2756202f6df580dd7ea 100644 (file)
@@ -186,6 +186,10 @@ a.bookmark {
   }
 }
 
-#bookmarkDisplayOptions{
-  padding-bottom: 15px;
+#bookmarkDisplayOptions {
+  padding-bottom: 10px;
+
+  .radio-option {
+    margin-bottom: 5px;
+  }
 }
\ No newline at end of file