From fcd224401581a8875c0c0fe86d2928ae0f06b599 Mon Sep 17 00:00:00 2001 From: ThibG Date: Thu, 15 Aug 2019 22:47:51 +0200 Subject: [PATCH] [Glitch] Allow clicking behind preview Port d37126fd03e47c32eaf532937dfc843b952d0d5a to glitch-soc Signed-off-by: Thibaut Girka --- .../glitch/features/ui/components/focal_point_modal.js | 4 ++-- .../flavours/glitch/styles/components/modal.scss | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js b/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js index 5135bdd2dc..1804a027bf 100644 --- a/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js +++ b/app/javascript/flavours/glitch/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/flavours/glitch/styles/components/modal.scss b/app/javascript/flavours/glitch/styles/components/modal.scss index c367e204c2..60c084d990 100644 --- a/app/javascript/flavours/glitch/styles/components/modal.scss +++ b/app/javascript/flavours/glitch/styles/components/modal.scss @@ -869,7 +869,12 @@ 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;