-
Notifications
You must be signed in to change notification settings - Fork 20
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
Missing header and footer in message when direction class is applied #2
Comments
It's not really a bug, it's a feature. Yeah, I always wanted to say that ;) Sender and sent time in Message.Header and Message.Footer visibility can be changed by scss variables:
This is because when messages are not grouped by using <MessageGroup />, you still can control how it looks like. The default scss variables are set to show the sender and sent time in Message.Header in messages with position "single" and "first". If you want to show Header and/or footer you have five(!) options:
<Message model={ { message: "Hey there" , sentTime: "just now", sender: "Joe"} } >
<Message.Header>
Custom header content
</Message.Header>
<Message.Footer>
Custom footer content
</Message.Footer>
</Message>
.cs-message__sender-name,
.cs-message__sent-time {
display:block !important;
} The 3th and 4th approach is recommended. After all, I know that it's quite complicated, hard to maintain both in the code of the application and in library itself. Hope this explanation helps a little :) |
chatscope/chat-ui-kit-react#11
The text was updated successfully, but these errors were encountered: