From 1b9b6a6f15f82df4dde258301939200e2a9466f3 Mon Sep 17 00:00:00 2001 From: buttle Date: Tue, 22 Jun 2021 12:21:37 +0200 Subject: [PATCH] hardwire dimensions. We will need to revise all dimensions for the arc-hive theme. --- src/Site/BlockLayout/Sketchfab.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Site/BlockLayout/Sketchfab.php b/src/Site/BlockLayout/Sketchfab.php index 3e234f0..f8b277e 100644 --- a/src/Site/BlockLayout/Sketchfab.php +++ b/src/Site/BlockLayout/Sketchfab.php @@ -75,7 +75,8 @@ class Sketchfab extends AbstractBlockLayout $media = $attachments[0]->item()->media()[0]; $width = 900; - $height = $width / $block->dataValue('ratio'); + //$height = $width / $block->dataValue('ratio'); + $height = $width / 1.333; return $view->partial('common/block-layout/sketchfab', [ 'title' => false, 'width' => $width,