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

Issue with Chatbox Avatar Display #691

Open
OtokoNoIzumi opened this issue Jun 23, 2024 · 1 comment
Open

Issue with Chatbox Avatar Display #691

OtokoNoIzumi opened this issue Jun 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@OtokoNoIzumi
Copy link

image
I've encountered a display issue with the chatbox avatar in our application that I'm hoping you can help with. There appears to be consistent blank spaces on the left and top sides of the avatar image within the chatbox.

@iisakkirotko
Copy link
Collaborator

Thanks a lot for opening the issue @OtokoNoIzumi!

In case anyone ends up here via google, here's the solution for now:

with solara.v.Avatar(color='#ff991f', size=400):
    solara.HTML(tag="img", attributes={"src": 'https://picsum.photos/400', "width": "100%"})

You can see it live here.

A proper solution to this in Solara would require some (visually) breaking changes, so we hope to include it in Solara 2.0. Until then the above workaround should suffice.

@iisakkirotko iisakkirotko added this to the Solara 2.0 milestone Jun 24, 2024
@iisakkirotko iisakkirotko added the bug Something isn't working label Jun 24, 2024
@iisakkirotko iisakkirotko self-assigned this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants