From: vincent@cubedesigners.com Date: Thu, 11 Jun 2020 09:44:09 +0000 (+0000) Subject: wait #3692 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=334c358bec2401882e01ccf4815ab904fa4a72e2;p=cubeextranet.git wait #3692 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 44dea3069..2503360cc 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -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