Some UI improvements
This commit is contained in:
@@ -60,7 +60,10 @@ let Post = (props) => {
|
||||
);
|
||||
return (
|
||||
<Card style={styles.card}>
|
||||
<Card.Content>
|
||||
<Card.Content style={{
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
}}>
|
||||
<Hyperlink linkDefault={true} linkStyle={{ color: '#2980b9' }}>
|
||||
{!post.nonOrganicType ?
|
||||
<View>
|
||||
@@ -71,7 +74,10 @@ let Post = (props) => {
|
||||
{" " + Moment(post.createdAt).fromNow()}
|
||||
</Text>
|
||||
</View>
|
||||
<Text style={{ fontSize: 15, padding: 0 }}>{cleanContent}</Text>
|
||||
{ cleanContent.length ?
|
||||
<Text style={{ fontSize: 15, padding: 0 }}>{cleanContent}</Text>
|
||||
: <></>
|
||||
}
|
||||
<View style={{paddingTop: 5}}>
|
||||
<Media content={post.content} postId={post._id} post={post} />
|
||||
</View>
|
||||
@@ -142,9 +148,10 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
card: {
|
||||
margin: 0,
|
||||
backgroundColor: "#FFFAFA",
|
||||
backgroundColor: "#FAFAFA",
|
||||
borderRadius: 0,
|
||||
marginBottom: 2
|
||||
marginBottom: 2,
|
||||
padding: 0
|
||||
},
|
||||
comment: {
|
||||
margin: 8,
|
||||
|
||||
Reference in New Issue
Block a user