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

I need customize getBorderRadius medhot in MessageContent #2928

Open
ertucaglar opened this issue Feb 4, 2025 · 0 comments
Open

I need customize getBorderRadius medhot in MessageContent #2928

ertucaglar opened this issue Feb 4, 2025 · 0 comments

Comments

@ertucaglar
Copy link

Motivation
I want to customize the getBorderRadius function in the MessageContent component.

My basic need is that I want to give different border styling according to the messageGroupTypes (top, middle, bottom), but I couldn't do it in the existing structure or I couldn't find an example for it in the documentation.

What I want to do:
Message 1: top
Message 2: middle
Message 3: bottom

top: borderTopLeftRadius: 8, borderTopRightRadius: 8, borderBottomLeftRadius: 8, borderBottomRightRadius: 2

middle: borderTopLeftRadius: 8, borderTopRightRadius: 2, borderBottomLeftRadius: 8, borderBottomRightRadius: 2

bottom: borderTopLeftRadius: 8, borderTopRightRadius: 2, borderBottomLeftRadius: 8, borderBottomRightRadius: 8

Image

Proposed solution
We can add this function to the channel component to get this function from outside or we can add styles according to groupTypes in the theme file.

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

No branches or pull requests

1 participant