fix hider alignment in thread (#9168)
This commit is contained in:
@@ -34,6 +34,7 @@ interface Props extends ComponentProps<typeof Link> {
|
|||||||
modui: ModerationUI
|
modui: ModerationUI
|
||||||
profile: AppBskyActorDefs.ProfileViewBasic
|
profile: AppBskyActorDefs.ProfileViewBasic
|
||||||
interpretFilterAsBlur?: boolean
|
interpretFilterAsBlur?: boolean
|
||||||
|
hiderStyle?: StyleProp<ViewStyle>
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PostHider({
|
export function PostHider({
|
||||||
@@ -42,6 +43,7 @@ export function PostHider({
|
|||||||
disabled,
|
disabled,
|
||||||
modui,
|
modui,
|
||||||
style,
|
style,
|
||||||
|
hiderStyle,
|
||||||
children,
|
children,
|
||||||
iconSize,
|
iconSize,
|
||||||
iconStyles,
|
iconStyles,
|
||||||
@@ -100,6 +102,7 @@ export function PostHider({
|
|||||||
},
|
},
|
||||||
override ? {paddingBottom: 0} : undefined,
|
override ? {paddingBottom: 0} : undefined,
|
||||||
t.atoms.bg,
|
t.atoms.bg,
|
||||||
|
hiderStyle,
|
||||||
]}>
|
]}>
|
||||||
<ModerationDetailsDialog control={control} modcause={blur} />
|
<ModerationDetailsDialog control={control} modcause={blur} />
|
||||||
<Pressable
|
<Pressable
|
||||||
|
|||||||
@@ -132,9 +132,7 @@ const ThreadItemPostOuterWrapper = memo(function ThreadItemPostOuterWrapper({
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
showTopBorder && [a.border_t, t.atoms.border_contrast_low],
|
showTopBorder && [a.border_t, t.atoms.border_contrast_low],
|
||||||
{
|
{paddingHorizontal: OUTER_SPACE},
|
||||||
paddingHorizontal: OUTER_SPACE,
|
|
||||||
},
|
|
||||||
// If there's no next child, add a little padding to bottom
|
// If there's no next child, add a little padding to bottom
|
||||||
!item.ui.showChildReplyLine &&
|
!item.ui.showChildReplyLine &&
|
||||||
!item.ui.precedesChildReadMore && {
|
!item.ui.precedesChildReadMore && {
|
||||||
@@ -255,8 +253,9 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({
|
|||||||
href={postHref}
|
href={postHref}
|
||||||
disabled={overrides?.moderation === true}
|
disabled={overrides?.moderation === true}
|
||||||
modui={moderation.ui('contentList')}
|
modui={moderation.ui('contentList')}
|
||||||
|
hiderStyle={[a.pl_0, a.pr_2xs, a.bg_transparent]}
|
||||||
iconSize={LINEAR_AVI_WIDTH}
|
iconSize={LINEAR_AVI_WIDTH}
|
||||||
iconStyles={{marginLeft: 2, marginRight: 2}}
|
iconStyles={[a.mr_xs]}
|
||||||
profile={post.author}
|
profile={post.author}
|
||||||
interpretFilterAsBlur>
|
interpretFilterAsBlur>
|
||||||
<ThreadItemPostParentReplyLine item={item} />
|
<ThreadItemPostParentReplyLine item={item} />
|
||||||
|
|||||||
Reference in New Issue
Block a user