Finesse post controls
This commit is contained in:
@@ -196,7 +196,7 @@ let PostControls = ({
|
|||||||
<View style={[a.flex_row, a.justify_between, a.flex_1]}>
|
<View style={[a.flex_row, a.justify_between, a.flex_1]}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
big ? a.align_center : [a.flex_1, a.align_start, {marginLeft: -6}],
|
{marginLeft: big ? -2 : -6},
|
||||||
replyDisabled ? {opacity: 0.5} : undefined,
|
replyDisabled ? {opacity: 0.5} : undefined,
|
||||||
]}>
|
]}>
|
||||||
<PostControlButton
|
<PostControlButton
|
||||||
@@ -225,7 +225,6 @@ let PostControls = ({
|
|||||||
)}
|
)}
|
||||||
</PostControlButton>
|
</PostControlButton>
|
||||||
</View>
|
</View>
|
||||||
<View style={big ? a.align_center : [a.flex_1, a.align_start]}>
|
|
||||||
<RepostButton
|
<RepostButton
|
||||||
isReposted={!!post.viewer?.repost}
|
isReposted={!!post.viewer?.repost}
|
||||||
repostCount={(post.repostCount ?? 0) + (post.quoteCount ?? 0)}
|
repostCount={(post.repostCount ?? 0) + (post.quoteCount ?? 0)}
|
||||||
@@ -234,8 +233,6 @@ let PostControls = ({
|
|||||||
big={big}
|
big={big}
|
||||||
embeddingDisabled={Boolean(post.viewer?.embeddingDisabled)}
|
embeddingDisabled={Boolean(post.viewer?.embeddingDisabled)}
|
||||||
/>
|
/>
|
||||||
</View>
|
|
||||||
<View style={big ? a.align_center : [a.flex_1, a.align_start]}>
|
|
||||||
<PostControlButton
|
<PostControlButton
|
||||||
testID="likeBtn"
|
testID="likeBtn"
|
||||||
big={big}
|
big={big}
|
||||||
@@ -275,15 +272,10 @@ let PostControls = ({
|
|||||||
hasBeenToggled={hasLikeIconBeenToggled}
|
hasBeenToggled={hasLikeIconBeenToggled}
|
||||||
/>
|
/>
|
||||||
</PostControlButton>
|
</PostControlButton>
|
||||||
|
{/* Spacer! */}
|
||||||
|
<View />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
<View style={[a.flex_row, a.justify_end, big && a.gap_sm]}>
|
||||||
<View
|
|
||||||
style={[
|
|
||||||
a.flex_row,
|
|
||||||
a.justify_end,
|
|
||||||
a.flex_1,
|
|
||||||
big ? a.gap_sm : a.gap_xs,
|
|
||||||
]}>
|
|
||||||
<BookmarkButton post={post} big={big} />
|
<BookmarkButton post={post} big={big} />
|
||||||
<ShareMenuButton
|
<ShareMenuButton
|
||||||
testID="postShareBtn"
|
testID="postShareBtn"
|
||||||
|
|||||||
Reference in New Issue
Block a user