Skip to content

Commit 3d065cb

Browse files
committed
fix playwright
1 parent 156feea commit 3d065cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/static-webserver/client/source/class/osparc/info/ServiceLarge.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,10 @@ qx.Class.define("osparc.info.ServiceLarge", {
392392

393393
__createThumbnail: function(maxWidth, maxHeight = 160) {
394394
// make sure maxs are not larger than the mins
395-
const enforcedMinWidth = Math.max(120, maxWidth);
396-
const enforcedMinHeight = Math.max(139, maxHeight);
397-
maxWidth = Math.max(enforcedMinWidth, maxWidth);
398-
maxHeight = Math.max(enforcedMinHeight, maxHeight);
395+
const minWidth = Math.max(120, maxWidth);
396+
const minHeight = Math.max(139, maxHeight);
397+
maxWidth = Math.max(minWidth, maxWidth);
398+
maxHeight = Math.max(minHeight, maxHeight);
399399

400400
const serviceData = this.getService();
401401
const thumbnail = osparc.info.Utils.createThumbnail(maxWidth, maxHeight);

0 commit comments

Comments
 (0)