Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix <hr> being almost invisible #1304

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Conversation

ayan4m1
Copy link
Contributor

@ayan4m1 ayan4m1 commented Jun 15, 2023

Before:

Screenshot 2023-06-15 082518

After:

Screenshot 2023-06-15 082435

Two changes:

  • Add border border-primary to the <hr> but only if it is not the last item in the listing.
  • Add typing information to this.posts.map() call

Fixed #533

@@ -68,7 +68,7 @@ export class PostListings extends Component<PostListingsProps, any> {
return (
<div>
{this.posts.length > 0 ? (
this.posts.map(post_view => (
this.posts.map((post_view: PostView, idx: number) => (
<>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the explicit types necessary? Typescript should already be able to infer these types if I'm not mistaken.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, updated!

@SleeplessOne1917 SleeplessOne1917 merged commit 212a8e4 into LemmyNet:main Jun 15, 2023
@ayan4m1 ayan4m1 deleted the fix/hr-border branch June 15, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<hr> hard to see in darkly theme.
2 participants