Some UI improvements

This commit is contained in:
Adolfo Reyna
2023-07-17 17:08:32 -04:00
parent 940bd14d6e
commit 919cd4be3b
3 changed files with 70 additions and 45 deletions

View File

@@ -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,