From a27ea20f3eb6afc1aed800cd99d84620e67c95e4 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 18 Apr 2017 15:20:45 -0700 Subject: [PATCH] Improve unsupported file type handling Make arbitrary files look nicer and display the filename. If an audio or video element fails to load for any reason, timeout after a few seconds and render it as an arbitrary file. Also short circuit to this treatment for common audio and video file types that we know are going to fail, e.g., proprietary formats from apple. // FREEBIE --- background.html | 4 +++ images/file.svg | 1 + js/views/attachment_view.js | 65 ++++++++++++++++++++++++---------- stylesheets/_conversation.scss | 33 +++++++++++++++++ stylesheets/_lightbox.scss | 2 +- stylesheets/android-dark.scss | 2 +- stylesheets/manifest.css | 35 ++++++++++++++++-- 7 files changed, 119 insertions(+), 23 deletions(-) create mode 100644 images/file.svg diff --git a/background.html b/background.html index d53057fe0..114ef2859 100644 --- a/background.html +++ b/background.html @@ -151,6 +151,10 @@ +