From d37126fd03e47c32eaf532937dfc843b952d0d5a Mon Sep 17 00:00:00 2001 From: ThibG Date: Thu, 15 Aug 2019 22:47:51 +0200 Subject: [PATCH] Allow clicking behind preview (#11576) --- .../mastodon/features/ui/components/focal_point_modal.js | 4 ++-- app/javascript/styles/mastodon/components.scss | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/features/ui/components/focal_point_modal.js b/app/javascript/mastodon/features/ui/components/focal_point_modal.js index 2f5c728a7ba..67c5606200b 100644 --- a/app/javascript/mastodon/features/ui/components/focal_point_modal.js +++ b/app/javascript/mastodon/features/ui/components/focal_point_modal.js @@ -230,7 +230,7 @@ class FocalPointModal extends ImmutablePureComponent {
{focals && ( -
+
{media.get('type') === 'image' && } {media.get('type') === 'gifv' &&
-
+
)} diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index e30b75495bb..78ce5d46c81 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -5797,7 +5797,12 @@ noscript { bottom: 10px; right: 10px; z-index: 2; - cursor: default; + cursor: move; + transition: opacity 0.1s ease; + + &:hover { + opacity: 0.5; + } strong { color: $primary-text-color;