From e116d164e88a1215509f7d6549571e93f38d1348 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 23 Sep 2024 04:39:07 +0200 Subject: [PATCH] Move spoiler text to inside the button --- src/components/status.jsx | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 9ae1aa19..7d203087 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -1889,21 +1889,12 @@ function Status({ <> {(!!spoilerText || !!sensitive) && !readingExpandSpoilers && ( <> - {!!spoilerText && ( - - {' '} - - )} )} @@ -1946,17 +1937,6 @@ function Status({ <> {!!spoilerText && ( <> -
-

- -

-
{readingExpandSpoilers || previewMode ? (
Content warning @@ -1984,7 +1964,7 @@ function Status({ }} > {' '} - {showSpoiler ? t`Show less` : t`Show content`} + {!!spoilerText ? : showSpoiler ? t`Show less` : t`Show content`} )}