From e48a6a5f2c878e0deecddbd92ba4d823bebd7f9e 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 714a20697f5e2f7994df012a5a8bbb49bc56f2e7 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 1c413066662ec573aac29d2468062b2def13aab9..ceb9775b584c9d6fc357009db72efac44d9e0f9e 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 632d84ed39d3f67d13d872768f06d607535451b2..ff34b525a0a3ffb15c4f0c02bca56dc54d9c73a6 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 8727cd76aee5541ae61412f99484bf72ae01bbe6..f5318689fca9e045dd626814b1ecee4d72eb198f 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 bcddfdcd385dc93a3be123c0454c7e63ad602be4..f99248da2ed9b3dc0087645ce777da51b165be64 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; }