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