Improve post spacing (#8589)
This commit is contained in:
@@ -185,7 +185,14 @@ let PostControls = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[a.flex_row, a.justify_between, a.align_center, style]}>
|
<View
|
||||||
|
style={[
|
||||||
|
a.flex_row,
|
||||||
|
a.justify_between,
|
||||||
|
a.align_center,
|
||||||
|
!big && a.pt_2xs,
|
||||||
|
style,
|
||||||
|
]}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
big ? a.align_center : [a.flex_1, a.align_start, {marginLeft: -6}],
|
big ? a.align_center : [a.flex_1, a.align_start, {marginLeft: -6}],
|
||||||
|
|||||||
@@ -218,17 +218,13 @@ const ThreadItemTreeReplyChildReplyLine = memo(
|
|||||||
}) {
|
}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
return (
|
return (
|
||||||
<View style={[a.relative, {width: TREE_AVI_PLUS_SPACE}]}>
|
<View style={[a.relative, a.pt_2xs, {width: TREE_AVI_PLUS_SPACE}]}>
|
||||||
{item.ui.showChildReplyLine && (
|
{item.ui.showChildReplyLine && (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.flex_1,
|
a.flex_1,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
{
|
{borderRightWidth: 2, width: '50%', left: -1},
|
||||||
borderRightWidth: 2,
|
|
||||||
width: '50%',
|
|
||||||
left: -1,
|
|
||||||
},
|
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@@ -331,12 +327,12 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
|
|||||||
timestamp={post.indexedAt}
|
timestamp={post.indexedAt}
|
||||||
postHref={postHref}
|
postHref={postHref}
|
||||||
avatarSize={TREE_AVI_WIDTH}
|
avatarSize={TREE_AVI_WIDTH}
|
||||||
style={[a.pb_2xs]}
|
style={[a.pb_0]}
|
||||||
showAvatar
|
showAvatar
|
||||||
/>
|
/>
|
||||||
<View style={[a.flex_row]}>
|
<View style={[a.flex_row]}>
|
||||||
<ThreadItemTreeReplyChildReplyLine item={item} />
|
<ThreadItemTreeReplyChildReplyLine item={item} />
|
||||||
<View style={[a.flex_1]}>
|
<View style={[a.flex_1, a.pl_2xs]}>
|
||||||
<LabelsOnMyPost post={post} style={[a.pb_2xs]} />
|
<LabelsOnMyPost post={post} style={[a.pb_2xs]} />
|
||||||
<PostAlerts
|
<PostAlerts
|
||||||
modui={moderation.ui('contentList')}
|
modui={moderation.ui('contentList')}
|
||||||
@@ -360,7 +356,7 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : undefined}
|
) : null}
|
||||||
{post.embed && (
|
{post.embed && (
|
||||||
<View style={[a.pb_xs]}>
|
<View style={[a.pb_xs]}>
|
||||||
<Embed
|
<Embed
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ let FeedItemInner = ({
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={{paddingTop: 12, flexShrink: 1}}>
|
<View style={{paddingTop: 10, flexShrink: 1}}>
|
||||||
{isReasonFeedSource(reason) ? (
|
{isReasonFeedSource(reason) ? (
|
||||||
<Link href={reason.href}>
|
<Link href={reason.href}>
|
||||||
<Text
|
<Text
|
||||||
@@ -660,7 +660,6 @@ const styles = StyleSheet.create({
|
|||||||
includeReason: {
|
includeReason: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
marginTop: 2,
|
|
||||||
marginBottom: 2,
|
marginBottom: 2,
|
||||||
marginLeft: -16,
|
marginLeft: -16,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user