From 01667a005ea4ac1eb4636e829d35efe4db586764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1rbara=20de=20Castro=20Fernandes?= Date: Sun, 6 Sep 2020 16:08:09 -0300 Subject: [PATCH] Show file icon and name for other file types Currently the media preview looks blank when the file type is anything other than an image, video or audio. This commit inserts a generic file icon and also a label with the filename for these other extensions. --- app/soapbox/components/media_gallery.js | Bin 19002 -> 19681 bytes app/styles/components/media-gallery.scss | 1 + 2 files changed, 1 insertion(+) diff --git a/app/soapbox/components/media_gallery.js b/app/soapbox/components/media_gallery.js index f848a396f1ec263c4e1399ec0d97bae3321ec29f..0fc7dcb6755bc828dbf8fc7eaf0797fb52cc56af 100644 GIT binary patch delta 491 zcmdlrh4JA`#tl>WT$1ziic1uH9V6o1JbhgK9DQBmfs}iQhk~twiK#W00uVsdq^FiR z7v&ceq^7uK=A`B&=B5IbXlN?f+D-NsbLB{b3QoQxrd+SDt_jf!(+raZYAH(1%`Zs} z4f4?|E=?*fDbj$+`6L#Xc;=;~Rw!sI7{c{urYXQx=mG6bFUe4_vBlWCZCs3nA{^EwE48ae#Xr@!doo?r(p{w diff --git a/app/styles/components/media-gallery.scss b/app/styles/components/media-gallery.scss index 731f361fc2..02318c6d81 100644 --- a/app/styles/components/media-gallery.scss +++ b/app/styles/components/media-gallery.scss @@ -134,6 +134,7 @@ } .media-gallery__gifv__label, +.media-gallery__filename__label, .media-gallery__file-extension__label { display: block; position: absolute;