-
Notifications
You must be signed in to change notification settings - Fork 324
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
Reactions are pushed offscreen on large messages with images #1734
Comments
Thanks for reporting this @benmechen. I can confirm that this happens on small devices I've tested on on my end as well. |
Hey team! Please add your planning poker estimate with Zenhub @khushal87 @madsroskar @vishalnarkhede |
@vanGalilea Any ETA on this? |
@vanGalilea Any updates on it? |
@PhilipHow @atsss scaling down the image or adding scroll view have a bit of complexities. This is something we will look into at some point. We support a prop The problem is that, it might not be a good UX for the case of message which has no attachment. What we can do for now is that we can modify <OverlayProvider messageTextNumberOfLines={(message) => message.attachments.length > 0 ? 1 : 5}>
...
</OverlayProvider> Would that work for you? |
@vishalnarkhede Thanks for replying. I've changed the This is my code snipets
|
This doesn't work for us, no. Most of the issues are with attachments, including images or web previews. Scrolling is really the only solution to this unless the message action UX is fundamentally changed. |
@PhilipHow @atsss thanks for your feedback. Let us give it some thought and get back to you soon. |
@vishalnarkhede Any updates on it? |
@atsss we have added this to our backlog and will pick it up the upcoming quarter 👍🏻 |
@vanGalilea @vishalnarkhede Any updates on it? |
Still in our backlog for this Q, stay tuned please! |
@Stofkat @benmechen @atsss Could you check the description of the PR, to see if the suggested solution would be fine with you? - #2244 |
|
@Stofkat could you please tell me how I can reproduce this issue on our side? Basically what custom components do I need to set. |
@vishalnarkhede You can reproduce this by adding attachments with an unknown file type. There will be no preview being displayed by the chat at all however the size of the chat balloon is increased anyways. This is not really a problem because I can decrypt our encrypted attachments and display them with some custom code. However: when you display the message actions it will still base the height of the window on the size of the original message balloon. Long story short: it appears as if the containing view size is somehow based on a number of attachments rather than the actual height of the content. Is there some way I can set the height of the message actions manually? |
You mean images with unknown type? Since gallery view is only rendered for attackment.type = "image" |
@Stofkat ?? |
This will be fixed with new v6 designs around the message menu. |
We have released version 6.0.0 today, and that has a new design, which is much cleaner and easier to customize. You can upgrade to the version and I think this problem should be indirectly solved. https://getstream.io/chat/docs/sdk/react-native/basics/upgrading-from-v5/ Do let us know how it goes. Thanks 😄 |
Describe the bug
When the message is large, either due to large amounts of text or due to an image, the reactions list is pushed off the top of the screen, and the message actions are pushed off the bottom, making them both inaccessible.
This predominantly affects smaller screen phones, such as the iPhone SE and 8, however is does also affect larger phones if the message is long enough.
Dev environment info (please complete/provide the following information):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All message UI on the long press should be accessible, either by scroll, scaling down image size, or cutting off long text.
Screenshots
The text was updated successfully, but these errors were encountered: