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

change the logic of show more from number of lines to number characters #9452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KaleemNeslit
Copy link
Collaborator

Link to Issue

Closes: #9276

Description of Changes

  • Change the "show more " from number of lines to length Or character .
  • currently the length of content is 500 character output is attached below for better understanding

image

@@ -209,7 +209,7 @@ export const ThreadCard = ({
<CWText type="b1" className="content-body">
<QuillRenderer
doc={bodyText}
cutoffLines={4}
maxChars={500}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we maybe put this as a constant in shared/src/constants.ts? It is a useful reference for me on the backend where we will soon be truncating all bodies longer than the amount required for previews.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure , i will put there .
"I noticed that we're using in different places, and in some instances, we're setting cutoffLines to 50 or 10. Should I replace all occurrences of cutoffLines with maxchars, or should we keep support for cutoffLines so that it continues to work as it currently does in other places?"
@Israellund

Copy link
Collaborator

Choose a reason for hiding this comment

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

@KaleemNeslit I think this is a good question for @mzparacha What do you think?

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.

Large text blocks not triggering "Show more"
3 participants