mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix: spoiler text wasn't rendering on mobile
This commit is contained in:
@@ -117,7 +117,7 @@ const ReplyBacklinks = ({ post }: PostProps) => {
|
|||||||
|
|
||||||
const PostMessageMobile = ({ post }: PostProps) => {
|
const PostMessageMobile = ({ post }: PostProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { cid, content, deleted, parentCid, postCid, reason, removed, state, subplebbitAddress } = post || {};
|
const { cid, content, deleted, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {};
|
||||||
|
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
@@ -145,7 +145,7 @@ const PostMessageMobile = ({ post }: PostProps) => {
|
|||||||
) : deleted ? (
|
) : deleted ? (
|
||||||
<span className={styles.removedContent}>{t('user_deleted_this_post')}</span>
|
<span className={styles.removedContent}>{t('user_deleted_this_post')}</span>
|
||||||
) : (
|
) : (
|
||||||
<Markdown content={displayContent} />
|
<Markdown content={displayContent} spoiler={spoiler} />
|
||||||
)}
|
)}
|
||||||
{(removed || deleted) && reason && (
|
{(removed || deleted) && reason && (
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
Reference in New Issue
Block a user