-
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Jan 2, 2025
Replies: 1 comment 1 reply
-
I suggest JS to cut the text based on word count and then show full text when a button is clicked, this way you will have more control on where exactly the text is cut, so it wouldn't cut in the middle of word like Alternatively you can use JS to remove that Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest JS to cut the text based on word count and then show full text when a button is clicked, this way you will have more control on where exactly the text is cut, so it wouldn't cut in the middle of word like
nunc...
in the screenshot. (For example you wouldn't want a word likeanalytics
to be cut in half 😅 and there are many words in English that wouldn't look good if cut in half)Alternatively you can use JS to remove that
line-clamp-3
when show more button is clicked.Let me know if you have a question.