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

fix: Message overflow in thread & display command list above upload previews #75

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

MartinCupela
Copy link
Collaborator

🎯 Goal

  1. Provide a general css rule impacting all types of messages that would prevent messages' inner content to overflow from their message container.

  2. Display the command list (Giphy) for message input above upload previews.

🛠 Implementation details

Message content overflowed in case of messages displaying uploaded file and in the past it was the case for the other message types too. Adding this rule should work for all the message types because the underlying problem is that the children of a flex container (str-chat__message-simple) have min-width value set by default to auto. This can make the block elements take up much more space than desired, resulting in overflow. Therefore the elements with class str-chat__message-inner get rule min-width:0;

Command list container got z-index: 10001. The system of z-indices should be reviewed in order to avoid getting to so high values for the rule (the close button on image preview has z-index: 10000).

🎨 UI Changes

Message overflow

Before:
image

After:
image

Command list

Before:
image

After:
image

@MartinCupela MartinCupela merged commit 74a88bd into develop Apr 6, 2022
@MartinCupela MartinCupela deleted the fix-message-overflow-in-thread branch April 6, 2022 19:56
github-actions bot pushed a commit that referenced this pull request Apr 8, 2022
## [2.8.1](v2.8.0...v2.8.1) (2022-04-08)

### Bug Fixes

* add missing dark theme styling for messaging app ([#76](#76)) ([ec84a43](ec84a43))
* Message overflow in thread & display command list above upload previews ([#75](#75)) ([74a88bd](74a88bd))
* Remove unnecessary margin from error messages ([#74](#74)) ([5439779](5439779))
@szuperaz
Copy link
Collaborator

szuperaz commented Apr 8, 2022

🎉 This PR is included in version 2.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants