From 20a6500b6be3fc68e6565c02d30a1dd628b0eda3 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 22 May 2018 18:08:35 +0200 Subject: [PATCH] Fix per visualizzazione anteprime su chrome --- assets/src/css/style.css | 12 ++++++++++++ src/HTMLBuilder/Manager/FileManager.php | 11 ++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/assets/src/css/style.css b/assets/src/css/style.css index 0310d0898..d89366a45 100644 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -601,4 +601,16 @@ input.small-width { .nav-tabs-custom > .nav-tabs > li{ margin-bottom:-1px; margin-right: 0px; +} + + +.thumbnail { + position: relative; + -ms-zoom: 0.25; + -moz-transform: scale(0.25); + -moz-transform-origin: 0 0; + -o-transform: scale(0.25); + -o-transform-origin: 0 0; + -webkit-transform: scale(0.25); + -webkit-transform-origin: 0 0; } \ No newline at end of file diff --git a/src/HTMLBuilder/Manager/FileManager.php b/src/HTMLBuilder/Manager/FileManager.php index 38105a467..1103acd08 100644 --- a/src/HTMLBuilder/Manager/FileManager.php +++ b/src/HTMLBuilder/Manager/FileManager.php @@ -73,16 +73,13 @@ $result .= ' //Anteprime supportate dal browser - // - $extension = end((explode('.', $r['nome']))); + // + $extension = end((explode('.', $r['filename']))); $supported_extensions = ['pdf','jpg','png','gif','jpeg','bmp']; if ( in_array($extension, $supported_extensions)){ $result .= " -
- - alt : ".$r['filename']." - plugin ".$extension." mancante. - +
+
"; }else{