[Glitch] Fix visual glitch with the spoiler button

Port 16baa14ee1 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo authored and Claire committed 2026-07-01 18:39:29 +02:00
1 parent 40e240f411
commit e5c84235dc
1 file changed
+2 -2
@@ -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>