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

Allow to set message padding #2158

Closed
scaraux opened this issue Jun 21, 2023 · 2 comments · Fixed by #2202
Closed

Allow to set message padding #2158

scaraux opened this issue Jun 21, 2023 · 2 comments · Fixed by #2202

Comments

@scaraux
Copy link

scaraux commented Jun 21, 2023

It's currently impossible to style the messagePadding through the theme. What if we want to set a padding lesser than 8 pixels ? I'd like this to be configurable.

@khushal87
Copy link
Member

Hey @scaraux, thanks for pointing it out. You are correct that, currently, there's no direct way of customizing the property. But to help you with this, the messagePadding property is passed to MessageSystem and Message. So, for MessageSystem you can use the following to customize the padding:

theme: {messageList:{messageSystem:{container:{padding:5}}}}

For Message, I think you will have to customize the component to achieve it. You can have a look into the implementation of the Message/MessageSimple component and use the property to improve the padding.

We will try to add the property to the theme in the future. Thanks for pointing it out. 😄

@stream-ci-bot
Copy link
Contributor

🎉 This issue has been resolved in version 5.18.0 🎉

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants