Skip to content

Commit

Permalink
no index as key, make empty line between bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanwebster committed Dec 13, 2024
1 parent 2925619 commit 45c1e49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions app/src/UI/Overlay/News/NewsPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@
border: 1px solid black;
}
}

.newsListItemContent > li:not(:last-child) {
margin-bottom: 1rem;
}

9 changes: 2 additions & 7 deletions app/src/UI/Overlay/News/NewsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,8 @@ const NewsPage = (props: any) => {
<time dateTime={newsItem.date.toLocaleDateString()}>{newsItem.date.toLocaleDateString()}</time>
</p>
<ul className="newsListItemContent">
{newsItem.content.map((content: string, contentIndex: number) => (
<li
key={contentIndex}
style={{ marginBottom: contentIndex < newsItem.content.length - 1 ? '1rem' : '0' }}
>
{renderContentWithLinks(content)}
</li>
{newsItem.content.map((content: string) => (
<li key={content}>{renderContentWithLinks(content)}</li>
))}
</ul>
</div>
Expand Down

0 comments on commit 45c1e49

Please sign in to comment.