From 72bda1fc01fbe1e5b225792685169b5e6e8ad821 Mon Sep 17 00:00:00 2001 From: nee Date: Thu, 5 Apr 2018 22:16:19 +0200 Subject: [PATCH] workaround a bug where the blocker is invisible in conversation and timeline view. Signed-off-by: Moon Man --- SensitiveContentPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SensitiveContentPlugin.php b/SensitiveContentPlugin.php index 5054d5a..8447ae9 100644 --- a/SensitiveContentPlugin.php +++ b/SensitiveContentPlugin.php @@ -166,8 +166,8 @@ EOB; } catch (Exception $e) { $thumbnail = null; } - $thumbWidthCss = $thumbnail ? $thumbnail->width.'px' : 'auto'; - $thumbHeightCss = $thumbnail ? $thumbnail->height.'px' : 'auto'; + $thumbWidthCss = $thumbnail ? $thumbnail->width.'px' : '100%'; + $thumbHeightCss = $thumbnail ? $thumbnail->height.'px' : '100%'; $out->elementStart('div', array( 'class'=>'attachment-wrapper',