Skip to content

Commit

Permalink
refactor: change author name placement (from top left to bottom right
Browse files Browse the repository at this point in the history
  • Loading branch information
Slysoks committed Dec 13, 2024
1 parent 89a4692 commit cf79c8a
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions src/views/account/News/Atoms/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,13 @@ const NewsListItem: React.FC<NewsListItemProps> = ({ index, message, navigation,
});
}}
chevron={false}
leading={
<InitialIndicator
initial={parse_initials(message.author)}
color={selectColorSeed(message.author)}
/>
}
separator={index !== parentMessages.length - 1}
>
<View style={{
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
}}>
<NativeText
numberOfLines={1}
variant="subtitle"
>
{message.author}
</NativeText>

{!message.read && !isED && (
<View style={{
width: 8,
Expand All @@ -85,15 +72,29 @@ const NewsListItem: React.FC<NewsListItemProps> = ({ index, message, navigation,
>
{message.content ? parse_news_resume(message.content) : ""}
</NativeText>
<NativeText
numberOfLines={1}
variant="subtitle"
<View
style={{
marginTop: 6,
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
}}
>
{formatDate(message.date)}
</NativeText>
<NativeText
numberOfLines={1}
variant="subtitle"
style={{
marginTop: 6,
}}
>
{formatDate(message.date)}
</NativeText>
<NativeText
numberOfLines={1}
variant="subtitle"
>
{message.author}
</NativeText>
</View>
</NativeItem>
);
};
Expand Down

0 comments on commit cf79c8a

Please sign in to comment.