From 714a20697f5e2f7994df012a5a8bbb49bc56f2e7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 24 Jul 2023 22:04:38 +0200 Subject: [PATCH] Fix missing action label on sensitive videos and embeds in web UI (#26135) --- app/javascript/mastodon/features/audio/index.jsx | 6 +++++- app/javascript/mastodon/features/status/components/card.jsx | 5 ++++- app/javascript/mastodon/features/video/index.jsx | 5 ++++- app/javascript/styles/mastodon/components.scss | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/features/audio/index.jsx b/app/javascript/mastodon/features/audio/index.jsx index 72e76413b8..3f642bc74e 100644 --- a/app/javascript/mastodon/features/audio/index.jsx +++ b/app/javascript/mastodon/features/audio/index.jsx @@ -470,6 +470,7 @@ class Audio extends PureComponent { const progress = Math.min((currentTime / duration) * 100, 100); let warning; + if (sensitive) { warning = ; } else { @@ -515,7 +516,10 @@ class Audio extends PureComponent {
diff --git a/app/javascript/mastodon/features/status/components/card.jsx b/app/javascript/mastodon/features/status/components/card.jsx index 7cf324760e..dcc699e385 100644 --- a/app/javascript/mastodon/features/status/components/card.jsx +++ b/app/javascript/mastodon/features/status/components/card.jsx @@ -184,7 +184,10 @@ export default class Card extends PureComponent { let spoilerButton = ( ); diff --git a/app/javascript/mastodon/features/video/index.jsx b/app/javascript/mastodon/features/video/index.jsx index b6a024c6e7..3f7e0ada14 100644 --- a/app/javascript/mastodon/features/video/index.jsx +++ b/app/javascript/mastodon/features/video/index.jsx @@ -567,7 +567,10 @@ class Video extends PureComponent {
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 91c2a0f641..e75e55fb33 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -4186,6 +4186,7 @@ a.status-card { margin: 0; border: 0; border-radius: 4px; + color: $white; &__label { display: flex; @@ -4193,7 +4194,6 @@ a.status-card { justify-content: center; gap: 8px; flex-direction: column; - color: $primary-text-color; font-weight: 500; font-size: 14px; }