Keep visible around

This commit is contained in:
Eric Bailey
2026-06-10 12:04:19 -05:00
parent 0857cb99f9
commit 34f7902bea
@@ -1067,23 +1067,24 @@ function ExpandedAuthorsList({
}
return (
<Animated.View style={[a.overflow_hidden, heightStyle]}>
{profileCardEnabled ? (
<View onLayout={onInnerLayout} style={[a.pt_sm, a.pb_md]}>
{authors.map((author, i) => (
<ExpandedAuthorProfileCard
key={author.profile.did}
author={author}
moderationOpts={moderationOpts}
isLast={i === authors.length - 1}
/>
))}
</View>
) : (
visible &&
authors.map(author => (
<ExpandedAuthorCard key={author.profile.did} author={author} />
))
)}
{visible ? (
profileCardEnabled ? (
<View onLayout={onInnerLayout} style={[a.pt_sm, a.pb_md]}>
{authors.map((author, i) => (
<ExpandedAuthorProfileCard
key={author.profile.did}
author={author}
moderationOpts={moderationOpts}
isLast={i === authors.length - 1}
/>
))}
</View>
) : (
authors.map(author => (
<ExpandedAuthorCard key={author.profile.did} author={author} />
))
)
) : null}
</Animated.View>
)
}