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

#249: Long posts should have the see more feature #290

Merged

Conversation

lauchaves
Copy link
Contributor

Description

  • This PR solves issue #249

  • Long posts take a lot of space on the screen, sometimes a lot of scrolling as well

Implementation

  • Added a feature to expand or truncate post content.
  • Created a state variable isContentExpanded and toggleExpandedContent function to manage content expansion.
  • Updated the UI to show "See more" / "See less" on the same line if the content is too long.
  • Added logic to handle truncation and toggling when content exceeds 200 characters.

Screenshots

image
image

image

Copy link

vercel bot commented Jul 25, 2024

Someone is attempting to deploy a commit to the keep-starknet-strange Team on Vercel.

A member of the Team first needs to authorize it.

@lauchaves
Copy link
Contributor Author

JM! This is ready for review!

@ugur-eren ugur-eren linked an issue Jul 25, 2024 that may be closed by this pull request
@ugur-eren ugur-eren self-requested a review July 25, 2024 07:39
Copy link
Collaborator

@ugur-eren ugur-eren left a comment

Choose a reason for hiding this comment

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

Thanks for the work! LGTM

@ugur-eren ugur-eren merged commit 83edcf5 into keep-starknet-strange:main Jul 25, 2024
4 of 6 checks passed
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.

Long posts should have the View More feature
2 participants