From 4d3dbb345f6870c048d9a94a5739e46c9351ae38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net> Date: Mon, 22 Jan 2018 10:58:23 +0100 Subject: [PATCH] Remove video preview from files_sharing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl <jus@bitgrid.net> --- apps/files_sharing/css/public.scss | 7 +------ apps/files_sharing/templates/public.php | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss index 51c2bc9f4ce..5edc3f7eb90 100644 --- a/apps/files_sharing/css/public.scss +++ b/apps/files_sharing/css/public.scss @@ -39,15 +39,10 @@ } -#imgframe img, -#imgframe video { +#imgframe img { max-height: 100% !important; max-width: 100% !important; } -#imgframe video { - width: 854px; - height: 480px; -} #imgframe .text-preview { display: inline-block; diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 9d28c178dde..3c2bbe5fb59 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -91,13 +91,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <?php if (isset($_['folder'])): ?> <?php print_unescaped($_['folder']); ?> <?php else: ?> - <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) === 'video'): ?> - <div id="imgframe"> - <video tabindex="0" controls="" preload="none" style="max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"> - <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> - </video> - </div> - <?php elseif ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?> + <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?> <div id="imgframe"> <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"> <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> -- GitLab