stream-chat-angular
stream-chat-angular copied to clipboard
Allow controlling avatar sizes through CSS variables
Right now there doesn't seem to be a way to change avatar sizes in a nice way: you should either use dirty CSS overwrites or create custom components for the components-hosts of <stream-avatar-placeholder>
, which would allow you to pass the size directly.
What's the idea behind having sizes set through JS and not CSS? Can you add a way to control the sizes through CSS variables?
I agree that it makes more sense to have CSS variables to control avatar size. I'll try to squeeze this in the coming weeks, in the meantime, the dirty CSS overwrites are the way to go.
Thanks!
An update on this: this is expected to be part of the next major release (v5), development on that will start shortly, we'll have a beta branch with prereleases, but it's possible that the avatar bit will be implemented later then the next couple of weeks.
:tada: This issue has been resolved in version 5.0.0-v5.13 :tada:
The release is available on:
Your semantic-release bot :package::rocket: