From 937b9b4c599055d6d15e08d6edcaa54378c4785c Mon Sep 17 00:00:00 2001 From: Harrys Ravalomanana Date: Tue, 14 Jan 2020 16:56:40 +0400 Subject: [PATCH] PHRAS-2862 #comment Fix lightbox mobile : video resize #time 3h --- templates/mobile/common/thumbnail.html.twig | 5 ++++- templates/mobile/lightbox/basket_element.html.twig | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/templates/mobile/common/thumbnail.html.twig b/templates/mobile/common/thumbnail.html.twig index d2b805d5fb..f62d84281d 100644 --- a/templates/mobile/common/thumbnail.html.twig +++ b/templates/mobile/common/thumbnail.html.twig @@ -57,9 +57,12 @@ {% set url = app.getAuthenticator().isAuthenticated() ? thumbnail.get_url() : thumbnail.get_permalink().get_url() %} {% set record_type = thumbnail.get_type() %} {% if record_type == 'VIDEO_MP4' or record_type == 'VIDEO_FLV' %} + {% set thumbnail_height = thumbnail.get_height() > 0 ? thumbnail.get_height() : 120 %} + {% set thumbnail_width = thumbnail.get_width() > 0 ? thumbnail.get_width() : 120 %} + + frameborder="0" allowfullscreen class="video-iframe"> {% elseif record_type == 'FLEXPAPER' %}