From a0abbbe8cd2b84dd298142318884a3505cb6f550 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 21 Jun 2019 22:59:44 +0200 Subject: [PATCH] [Glitch] Add media description as title to links of unknown media attachments Port front-end changes from a266d7f1a264ff3edd36ee1c9320e2125add3c1a to glitch-soc Signed-off-by: Thibaut Girka --- app/javascript/flavours/glitch/components/media_gallery.js | 2 +- app/javascript/flavours/glitch/styles/components/composer.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index 6ef101f115..291caff453 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/app/javascript/flavours/glitch/components/media_gallery.js @@ -177,7 +177,7 @@ class Item extends React.PureComponent { if (attachment.get('type') === 'unknown') { return (
- +
diff --git a/app/javascript/flavours/glitch/styles/components/composer.scss b/app/javascript/flavours/glitch/styles/components/composer.scss index c06d79ffc2..3eb5551c6e 100644 --- a/app/javascript/flavours/glitch/styles/components/composer.scss +++ b/app/javascript/flavours/glitch/styles/components/composer.scss @@ -370,6 +370,7 @@ border-radius: 4px; height: 140px; width: 100%; + background-color: $base-shadow-color; background-position: center; background-size: cover; background-repeat: no-repeat;