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 ( return (
<Animated.View style={[a.overflow_hidden, heightStyle]}> <Animated.View style={[a.overflow_hidden, heightStyle]}>
{profileCardEnabled ? ( {visible ? (
<View onLayout={onInnerLayout} style={[a.pt_sm, a.pb_md]}> profileCardEnabled ? (
{authors.map((author, i) => ( <View onLayout={onInnerLayout} style={[a.pt_sm, a.pb_md]}>
<ExpandedAuthorProfileCard {authors.map((author, i) => (
key={author.profile.did} <ExpandedAuthorProfileCard
author={author} key={author.profile.did}
moderationOpts={moderationOpts} author={author}
isLast={i === authors.length - 1} moderationOpts={moderationOpts}
/> isLast={i === authors.length - 1}
))} />
</View> ))}
) : ( </View>
visible && ) : (
authors.map(author => ( authors.map(author => (
<ExpandedAuthorCard key={author.profile.did} author={author} /> <ExpandedAuthorCard key={author.profile.did} author={author} />
)) ))
)} )
) : null}
</Animated.View> </Animated.View>
) )
} }