Fix positioning with overflows in the post meta
parent
6b715224f2
commit
5271718b3b
|
@ -25,26 +25,19 @@ export function PostMeta(opts: PostMetaOpts) {
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<View style={styles.meta}>
|
<View style={styles.meta}>
|
||||||
<View style={[styles.metaNames, maxWidth]}>
|
<Link
|
||||||
<Link
|
style={[styles.metaItem, maxWidth]}
|
||||||
style={[styles.metaItem, maxWidth]}
|
href={opts.authorHref}
|
||||||
href={opts.authorHref}
|
title={opts.authorHandle}>
|
||||||
title={opts.authorHandle}>
|
<Text style={[s.f17, s.bold]} numberOfLines={1}>
|
||||||
<Text style={[s.f17, s.bold]} numberOfLines={1}>
|
{opts.authorDisplayName || opts.authorHandle}
|
||||||
{opts.authorDisplayName || opts.authorHandle}
|
<Text style={[s.f15, s.gray5, s.normal]} numberOfLines={1}>
|
||||||
|
{opts.authorHandle}
|
||||||
</Text>
|
</Text>
|
||||||
</Link>
|
</Text>
|
||||||
<Link
|
</Link>
|
||||||
style={[styles.metaItem, maxWidth]}
|
|
||||||
href={opts.authorHref}
|
|
||||||
title={opts.authorHandle}>
|
|
||||||
<Text style={[s.f15, s.gray5]} numberOfLines={1}>
|
|
||||||
@{opts.authorHandle}
|
|
||||||
</Text>
|
|
||||||
</Link>
|
|
||||||
</View>
|
|
||||||
<Text style={[styles.metaItem, s.f15, s.gray5]}>
|
<Text style={[styles.metaItem, s.f15, s.gray5]}>
|
||||||
{ago(opts.timestamp)}
|
· {ago(opts.timestamp)}
|
||||||
</Text>
|
</Text>
|
||||||
<View style={s.flex1} />
|
<View style={s.flex1} />
|
||||||
<PostDropdownBtn
|
<PostDropdownBtn
|
||||||
|
@ -66,12 +59,6 @@ const styles = StyleSheet.create({
|
||||||
paddingTop: 2,
|
paddingTop: 2,
|
||||||
paddingBottom: 2,
|
paddingBottom: 2,
|
||||||
},
|
},
|
||||||
metaNames: {
|
|
||||||
flexDirection: 'row',
|
|
||||||
flexWrap: 'wrap',
|
|
||||||
alignItems: 'center',
|
|
||||||
overflow: 'hidden',
|
|
||||||
},
|
|
||||||
metaItem: {
|
metaItem: {
|
||||||
paddingRight: 5,
|
paddingRight: 5,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue