diff options
author | Hailey <me@haileyok.com> | 2024-07-25 13:26:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 21:26:37 +0100 |
commit | 3914025227f7b63039928f771f351c3e9bb48581 (patch) | |
tree | a3b59087372d902af77c75b1140cd3395443cff0 /src/view/com/post/Post.tsx | |
parent | 401e92ed425db27b3904184c2cea148b19f9b7da (diff) | |
download | voidsky-3914025227f7b63039928f771f351c3e9bb48581.tar.zst |
`true` (#4833)
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index cb0db39de..ade0e7f10 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -209,40 +209,38 @@ function PostInner({ </View> )} <LabelsOnMyPost post={post} /> - {false && ( - <ContentHider + <ContentHider + modui={moderation.ui('contentView')} + style={styles.contentHider} + childContainerStyle={styles.contentHiderChild}> + <PostAlerts modui={moderation.ui('contentView')} - style={styles.contentHider} - childContainerStyle={styles.contentHiderChild}> - <PostAlerts - modui={moderation.ui('contentView')} - style={[a.py_xs]} - /> - {richText.text ? ( - <View style={styles.postTextContainer}> - <RichText - enableTags - testID="postText" - value={richText} - numberOfLines={limitLines ? MAX_POST_LINES : undefined} - style={[a.flex_1, a.text_md]} - authorHandle={post.author.handle} - /> - </View> - ) : undefined} - {limitLines ? ( - <TextLink - text={_(msg`Show More`)} - style={pal.link} - onPress={onPressShowMore} - href="#" + style={[a.py_xs]} + /> + {richText.text ? ( + <View style={styles.postTextContainer}> + <RichText + enableTags + testID="postText" + value={richText} + numberOfLines={limitLines ? MAX_POST_LINES : undefined} + style={[a.flex_1, a.text_md]} + authorHandle={post.author.handle} /> - ) : undefined} - {post.embed ? ( - <PostEmbeds embed={post.embed} moderation={moderation} /> - ) : null} - </ContentHider> - )} + </View> + ) : undefined} + {limitLines ? ( + <TextLink + text={_(msg`Show More`)} + style={pal.link} + onPress={onPressShowMore} + href="#" + /> + ) : undefined} + {post.embed ? ( + <PostEmbeds embed={post.embed} moderation={moderation} /> + ) : null} + </ContentHider> <PostCtrls post={post} record={record} |