feat: typing indicators - #20
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| .typing-avatar { | ||
| height: 20px; | ||
| /* eslint-disable-next-line css/no-important */ | ||
| font-size: 16px !important; |
There was a problem hiding this comment.
Instead of utilizing !important, consider increasing specificity.
That aside, why are you setting a font-size on images anyway?
There was a problem hiding this comment.
If the user doesnt have an image as avatar it will be text
There was a problem hiding this comment.
You're right. I'd still prefer specificity over !important.
Also, are you sure 16px isn't too large?
There was a problem hiding this comment.
Is that possible though? I dont know a lot about CSS specificity
There was a problem hiding this comment.
.avatar.typing-avatar (specificity (0, 2, 0)) beats out .avatar:not(:has(img)) (specificity (0, 1, 1)).
I tested this on member avatars (.avatar.member-avatar). Change it there as well.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: j0code <42189560+j0code@users.noreply.github.com>
| import Component from "./Component"; | ||
| export default class AvatarList extends Component { | ||
| constructor(users: string[], classes: string[] = []) { |
There was a problem hiding this comment.
Make maxDisplayedAvatars (if you got a better name you can use that) a constructor argument please. Default 3.
| .typing-avatars { | ||
| .avatar-list-avatar { | ||
| outline: 4px solid var(--background-primary); |
There was a problem hiding this comment.
Please use a border (if possible) or an svg mask please.
Outlines are reserved for keyboard navigation.
| .typing-avatar { | ||
| height: 20px; | ||
| /* eslint-disable-next-line css/no-important */ | ||
| font-size: 16px !important; |
There was a problem hiding this comment.
.avatar.typing-avatar (specificity (0, 2, 0)) beats out .avatar:not(:has(img)) (specificity (0, 1, 1)).
I tested this on member avatars (.avatar.member-avatar). Change it there as well.
No description provided.