-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
#2217 - Add UI limit for chat message #2272
Conversation
|
Test summaryRun details
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @SebinSong!
One issue I found: the UI gets kind of broken in Firefox when I past a very large file. I couldn't even check if the text is being cut off because I'm not able to scroll the page or the input box when it's like this:
Can you maybe add a height limit to the input box itself, and then add a scrollbar that appears so that the contents can be scrolled? (Please verify it also works well on mobile too when a very large amount of text is copy/pasted)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @SebinSong, I think this is a good height for mobile:
For desktop, I would make it slightly taller.
However, the most important issue is that still I cannot scroll the input box. Can you? When I try to scroll using the scroll wheel it doesn't work. I would also maybe make a vertical scrollbar visible on the righthand side when the text overflows past the max height.
@taoeffect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
closes #2217
Currently
CHATROOM_MAX_MESSAGE_LEN = 20000
and I've addedmaxlength
attribute for it (which makes sure string beyond that limit gets cut off), but not thatn/20000
indicator UI because I thought it will be rare that the user types messages longer than that and having it won't be that useful compared to other places.But let me know if we need it in place here too.