From 291b1d90c65ca09969c00f599dde3c8301283b33 Mon Sep 17 00:00:00 2001 From: Echo Date: Wed, 1 Jul 2026 11:10:19 +0200 Subject: [PATCH] Fix visual glitch with the spoiler button (#39677) --- app/javascript/mastodon/components/spoiler_button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/spoiler_button.tsx b/app/javascript/mastodon/components/spoiler_button.tsx index bf84ffd04d..943fcdff12 100644 --- a/app/javascript/mastodon/components/spoiler_button.tsx +++ b/app/javascript/mastodon/components/spoiler_button.tsx @@ -30,7 +30,7 @@ export const SpoilerButton: React.FC = ({ action = ( ); - } else if (matchedFilters) { + } else if (matchedFilters?.length) { warning = ( = ({ disabled={uncached} > - {warning} + {warning} {action}