More layout fixes in notifications

zio/stable
Paul Frazee 2023-01-20 08:40:41 -06:00
parent db4109a5ea
commit 56747263df
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ import {Link} from '../util/Link'
import {usePalette} from '../../lib/hooks/usePalette'
import {useAnimatedValue} from '../../lib/hooks/useAnimatedValue'
const MAX_AUTHORS = 8
const MAX_AUTHORS = 5
const EXPANDED_AUTHOR_EL_HEIGHT = 35
@ -273,7 +273,7 @@ function CondensedAuthorsList({
<FontAwesomeIcon
icon="angle-down"
size={18}
style={[styles.expandedAuthorsCloseBtnIcon, pal.icon]}
style={[styles.expandedAuthorsCloseBtnIcon, pal.textLight]}
/>
</View>
)
@ -302,7 +302,7 @@ function ExpandedAuthorsList({
}).start()
}, [heightInterp, visible])
return (
<Animated.View style={[s.mb10, heightStyle]}>
<Animated.View style={[heightStyle, visible ? s.mb10 : undefined]}>
{authors.map(author => (
<Link
key={author.href}