Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Chat): add unstable_overflow for Chat.Message #2050

Merged
merged 2 commits into from
Oct 30, 2019

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Oct 22, 2019

This PR adds the unstable_overflow prop to allow more flexible positioning of actionMenu slot. Currently when ChatMessage is inside of scrollable container actionMenu will be clipped.

unstable_overflow={false} by default & current behavior

image

unstable_overflow={true}

image

Why do not enable this by default?

  • this issue is possible only when ChatMessage inside of scrollable container (overflow: hidden)
  • to position actionMenu it's required to use fixed mode which can potentially affect performance and introduce other potential issues

My proposal is to go with a separate prop with unstable_ prefix for now, once we will see that this solution is correct or we will find other one we can decide.

@miroslavstastny miroslavstastny merged commit 583981f into master Oct 30, 2019
@miroslavstastny miroslavstastny deleted the feat/chat-overflow branch October 30, 2019 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants