mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-11 22:27:05 -05:00
Fix visual glitch with the spoiler button (#39677)
This commit is contained in:
@@ -30,7 +30,7 @@ export const SpoilerButton: React.FC<Props> = ({
|
||||
action = (
|
||||
<FormattedMessage id='status.media.open' defaultMessage='Click to open' />
|
||||
);
|
||||
} else if (matchedFilters) {
|
||||
} else if (matchedFilters?.length) {
|
||||
warning = (
|
||||
<FormattedMessage
|
||||
id='filter_warning.matches_filter'
|
||||
@@ -80,7 +80,7 @@ export const SpoilerButton: React.FC<Props> = ({
|
||||
disabled={uncached}
|
||||
>
|
||||
<span className='spoiler-button__overlay__label'>
|
||||
{warning}
|
||||
<span className='spoiler-button__overlay__text'>{warning}</span>
|
||||
<span className='spoiler-button__overlay__action'>{action}</span>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user