]> _ Git - cubeextranet.git/commitdiff
wait #3692
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 11 Jun 2020 09:44:09 +0000 (09:44 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 11 Jun 2020 09:44:09 +0000 (09:44 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 44dea3069c27d07a89801ccc7a159983642ebed2..2503360ccc985860b9a33e4cdaa5fd13eb7b410a 100644 (file)
@@ -2037,9 +2037,13 @@ class wsHTML5Compiler
         }
 
         # Index
+        $thumbw = $this->book->parametres->mobileNavigationType === 'portrait' ? 200 : 100;
+        $this->lessVariables['thumb-width'] = $thumbw . 'px';
         $ratio = $this->width / $this->height;
-        $thumbh = round(100 / $ratio);
+        $thumbh = round($thumbw / $ratio);
+        $this->config->thumbWidth = $thumbw;
         $this->config->thumbHeight = $thumbh;
+
         $this->lessVariables['thumb-height'] = $thumbh . 'px';
 
         #tooltip