From dec4afe6d73d99c9bd32bf00712010d73aea2647 Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Thu, 29 Dec 2022 10:20:42 -0800 Subject: [PATCH] Add media missing description icon button class For custom CSS. Also renaming one of the other related classes. --- app/javascript/mastodon/components/media_gallery.js | 2 +- app/javascript/mastodon/features/audio/index.js | 2 +- app/javascript/mastodon/features/video/index.js | 2 +- app/javascript/styles/mastodon/components.scss | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 4f2814a3a..1d2cbdaa3 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -171,7 +171,7 @@ class Item extends React.PureComponent { target='_blank' rel='noopener noreferrer' > - { !attachment.get('description') && } + { !attachment.get('description') && }
- {!alt && } + {!alt && } {!editable && } diff --git a/app/javascript/mastodon/features/video/index.js b/app/javascript/mastodon/features/video/index.js index 28646f830..c6b46493a 100644 --- a/app/javascript/mastodon/features/video/index.js +++ b/app/javascript/mastodon/features/video/index.js @@ -641,7 +641,7 @@ class Video extends React.PureComponent {
- {!alt && } + {!alt && } {(!onCloseVideo && !editable && !fullscreen && !this.props.alwaysVisible) && } {(!fullscreen && onOpenVideo) && } {onCloseVideo && } diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 1011d8040..7b668946c 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -6020,7 +6020,7 @@ a.status-card.compact:hover { } } -.media-gallery__item-no-alt { +.media-gallery__item-no-description { position: absolute; bottom: 4px; left: 4px;