From fef9f157a9f6c1e522c638892ca9163104d2cab8 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 24 Jul 2023 22:04:38 +0200 Subject: [PATCH] [Glitch] Fix missing action label on sensitive videos and embeds in web UI Port a90d7ac141739435612a27f3ef16a00deb748236 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/features/audio/index.jsx | 6 +++++- .../flavours/glitch/features/status/components/card.jsx | 5 ++++- app/javascript/flavours/glitch/features/video/index.jsx | 5 ++++- app/javascript/flavours/glitch/styles/components/misc.scss | 3 ++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/javascript/flavours/glitch/features/audio/index.jsx b/app/javascript/flavours/glitch/features/audio/index.jsx index 1c41306666..ceb9775b58 100644 --- a/app/javascript/flavours/glitch/features/audio/index.jsx +++ b/app/javascript/flavours/glitch/features/audio/index.jsx @@ -477,6 +477,7 @@ class Audio extends PureComponent { const progress = Math.min((currentTime / duration) * 100, 100); let warning; + if (sensitive) { warning = ; } else { @@ -522,7 +523,10 @@ class Audio extends PureComponent {
diff --git a/app/javascript/flavours/glitch/features/status/components/card.jsx b/app/javascript/flavours/glitch/features/status/components/card.jsx index 632d84ed39..ff34b525a0 100644 --- a/app/javascript/flavours/glitch/features/status/components/card.jsx +++ b/app/javascript/flavours/glitch/features/status/components/card.jsx @@ -181,7 +181,10 @@ export default class Card extends PureComponent { let thumbnail = ; let spoilerButton = ( ); spoilerButton = ( diff --git a/app/javascript/flavours/glitch/features/video/index.jsx b/app/javascript/flavours/glitch/features/video/index.jsx index 8727cd76ae..f5318689fc 100644 --- a/app/javascript/flavours/glitch/features/video/index.jsx +++ b/app/javascript/flavours/glitch/features/video/index.jsx @@ -577,7 +577,10 @@ class Video extends PureComponent {
diff --git a/app/javascript/flavours/glitch/styles/components/misc.scss b/app/javascript/flavours/glitch/styles/components/misc.scss index bcddfdcd38..f99248da2e 100644 --- a/app/javascript/flavours/glitch/styles/components/misc.scss +++ b/app/javascript/flavours/glitch/styles/components/misc.scss @@ -1351,6 +1351,8 @@ button.icon-button.active i.fa-retweet { padding: 0; margin: 0; border: 0; + border-radius: 4px; + color: $white; &__label { display: flex; @@ -1358,7 +1360,6 @@ button.icon-button.active i.fa-retweet { justify-content: center; gap: 8px; flex-direction: column; - color: $primary-text-color; font-weight: 500; font-size: 14px; }