]> _ Git - fluidbook-html5.git/commitdiff
Fix #1732 @0:20
authorStephen Cameron <stephen@cubedesigners.com>
Tue, 10 Oct 2017 16:33:06 +0000 (18:33 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Tue, 10 Oct 2017 16:33:06 +0000 (18:33 +0200)
js/libs/fluidbook/fluidbook.resize.js
style/fluidbook.less

index f5da7ab682c288877912cc8f8944c6b07c921baf..8bb55da01e03f261380f2802b957c7f7776d780e 100644 (file)
@@ -255,7 +255,7 @@ FluidbookResize.prototype = {
 
         $("#splash .logo").css({
             top: (this.hh / 2) - 30 - lh - 10,
-            left: (this.ww - lw) / 2
+            left: Math.max((this.ww - lw) / 2, 0) // Prevent negative left offsets
         });
     },
     updateWindow: function () {
index 969f5ff78eab588186760f1baee03aa9fcf6c310..4d2e60daf963b4646e19c55b3536735d8b53685a 100644 (file)
@@ -2074,6 +2074,14 @@ ul.chapters {
 
 #splash .logo {
        position: absolute;
+
+       // Make sure logo fits and is centred even on small screens
+       img {
+               max-width: 95%;
+               height: auto;
+               display: block;
+               margin: 0 auto;
+       }
 }
 
 #popinOverlay {