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

Remove thumbnail expand icon on PostListing's postTitleLine #1618

Merged
merged 2 commits into from Jun 26, 2023

Conversation

alectrocute
Copy link
Contributor

Hi Lemdevs!

In this PR:

  • Remove extra expand icon on PostListing's postTitleLine
  • Why would a user want to expand a thumbnail? It's a confusing button.
Screenshot 2023-06-26 at 2 33 39 PM

Thanks!

@jsit
Copy link
Contributor

jsit commented Jun 26, 2023

Why would a user want to expand a thumbnail? It's a confusing button.

Why wouldn't they? Isn't this only for image posts? Could be nice, rather than navigating to the domain where the image is hosted.

@dessalines
Copy link
Member

I agree, image expanding isn't really necessary for link posts. But it is for image posts, as that's essentially one of the best utilities of RES.

@@ -482,26 +482,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
this.postLink
)}
</h5>
{(url && isImage(url)) ||
(post.thumbnail_url && (
Copy link
Member

Choose a reason for hiding this comment

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

I think all that's necessary is to remove the or condition. We do want to show an expando for image posts, just not for link posts.

@jsit
Copy link
Contributor

jsit commented Jun 26, 2023

Should this be handled in #1596? I sense a conflict coming.

@alectrocute
Copy link
Contributor Author

I thought clicking the thumbnail is the expando for image posts?

@dessalines
Copy link
Member

I thought clicking the thumbnail is the expando for image posts?

Oh yeah I forgot. In that case yep it makes sense to remove this. That'll help @jsit 's PR as it removes the conflicting icons.

@dessalines dessalines merged commit 16f2f0d into main Jun 26, 2023
0 of 2 checks passed
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 26, 2023
* lemmy/main:
  fix vote button alignment
  Fix feedback on banning an unbanning
  remove icon (LemmyNet#1618)
  Indicate valid and invalid fields in signup form (LemmyNet#1450)
  capitalize button (LemmyNet#1616)
  Move password reset form to separate route, view (LemmyNet#1390)
  feat(UI): Reduce base font size (LemmyNet#1591)
  Fix: missing semantic css classes and html elements (LemmyNet#1583)
jsit pushed a commit to jsit/lemmy-ui that referenced this pull request Jun 26, 2023
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
jsit pushed a commit to jsit/lemmy-ui that referenced this pull request Jun 27, 2023
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 27, 2023
* lemmy/main:
  fix vote button alignment
  partially revert change
  Fix feedback on banning an unbanning
  remove icon (LemmyNet#1618)
  Indicate valid and invalid fields in signup form (LemmyNet#1450)
  capitalize button (LemmyNet#1616)
  Move password reset form to separate route, view (LemmyNet#1390)
  feat(UI): Reduce base font size (LemmyNet#1591)
  Fix: missing semantic css classes and html elements (LemmyNet#1583)
  remove hook entirely
  chore(DX): Add prettier to eslint config for use with editors
  fix bug collapsing previews when voting
  fix: Remove unnecessary string interpolations
  fix: Remove unnecessary class
  fix: Remove unnecessary classes
  fix: Restore removed classes
  fix: Remove wrapping li's
  fix: Remove extraneous classes
  fix: Move things back to where they were
  chore: Separate post mod buttons into functions
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.

None yet

3 participants