]> _ Git - fluidbook-html5.git/commitdiff
wait #4926 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Nov 2021 12:22:06 +0000 (13:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Nov 2021 12:22:06 +0000 (13:22 +0100)
js/libs/fluidbook/fluidbook.mobilefirst.js
style/mobilefirst.less

index 98e43c70bc311bf68d5b0adacf341d5a0660583c..86ea6b206b04a1644c75bc6df9a59ca1ad0c0dc4 100644 (file)
@@ -147,7 +147,13 @@ FluidbookMobileFirst.prototype = {
             bh = this.fluidbook.loader.getPageDimensions(this.fluidbook.currentPage, width).height;
         }
 
-        $('#pages .mf-nav').css('top', bh);
+        var nav = $('#pages .mf-nav');
+        nav.css('top', bh);
+        if (480 > width) {
+            nav.css('transform', 'scale(' + (width / 480) + ')');
+        }
+
+
         $("#links,#pages").css({height: bh, maxHeight: bh});
         var sbh = bh / scale;
         $("#searchHighlights").css({height: sbh, maxHeight: sbh})
index e3dcb10a5aa181116a5acd06b066d678dd25ba90..9d47fd6c7952932798475d561ad26a7dac93329d 100644 (file)
 }
 
 .mf-nav {
-  @mfscale: 0.75;
-
   position: absolute;
   left: 0;
   font-size: 16px;
   color: @page-number-color;
   font-weight: 600;
   transition: opacity .15s;
+  min-width: 480px;
+  transform-origin: 0 0 0;
 
   &.hiddenzoom {
     opacity: 0 !important;
       top: 3em;
     }
   }
-
-
 }
 
 #mf-slider {