Open Israellund opened 1 month ago
https://github.com/user-attachments/assets/8447df05-f557-4f57-9192-afa6f85ccade
@Israellund @masvelio currently i added the character length of 400 and output is attached . can you please confirm 400 character is good or we need to increase or decrease the length
Describe the bug
When a large block of text is pasted into a thread, the entirety of the text is shown when there should be a condition that triggers the "Show more" functionality. From Tim: If I paste a lot of text, all of it is included in the preview instead of showing the
show more
button. I suspect this is because theshow more
cutoff only appears if there are explicit newlines(/n)
. If you just continue writing/pasting without manually hitting enter then the preview will show everything.https://commonwealth.im/tim-test-2/discussions
Reproduction steps
-paste a large block of text into the editor and create a thread -notice that the whole text block is shown
Actual behavior
-all text is shown in single text block
Expected behavior
-there should be a condition to look for text length that triggers "Show more"