-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
adjust avatar and its line height to comment message style #7514
Conversation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
I'm still really not convinced by how we display our avatars in comments. :/ |
Codecov Report
@@ Coverage Diff @@
## master #7514 +/- ##
============================================
+ Coverage 51.16% 51.17% +<.01%
Complexity 24865 24865
============================================
Files 1601 1601
Lines 94683 94688 +5
Branches 1368 1369 +1
============================================
+ Hits 48446 48452 +6
+ Misses 46237 46236 -1
|
Mmm, but if you do that then whether the display name is perfectly legible or not would depend on the colours of the avatar... In any case, regarding this pull request, besides the avatar size let's not forget about the other issues ;) In fact I would solve them first and then fix the size, as changing the size first may mask without really solving some of them. But first of all it would be better to decide if we are keeping the avatars shown like they are now or not to avoid working in vain ;-) |
I would drop the avatars from the inline text. No need to clutter the text like this. |
@danxuliu there is other ways to ensure that white text is readable over an undefined background, we do it in multiple places like the login page for example. Visually speaking, how do you like my example? |
@skjnldsv overlaying it like this will impair readability in any case. Also, we don't do it like this anywhere else, nor is there really a popular platform which does this. I would say this is great, as long as the vertical alignment and margin to the username is proper and the same. |
@danxuliu indeed! :) I don't like having the avatar in front of it, I feel like it's two separate elements, I like the idea of having both of them merged together. I won't vote then! :) |
@skjnldsv as I mentioned, we can move them closer together. But merging would be absolutely non-standard and very difficult to read, especially for people with visual impairments. It also won't work with the avatar placeholders as they have an actual letter in them which further hampers readability. |
I'm strongly agreeing with @MorrisJobke on this topic. Avatars are great when you need to identify author, but inline, they're nothing but hieroglyphs. Since we are not living in ancient Egypt or Mesopotamia, we should be able to read text using latin alphabet only. In fact, has anyone bothered to check how this looks with Mandarin, Arabic etc.? |
How do you know? :O |
Folks, there are compelling reasons for including the avatars. Names with the avatars directly put a face to the person and are like an easy-to-recognize "icon" of them. Like when scrolling through a conversation on Github or Signal or any messenger, you don't really read the names. Furthermore, it makes it evidently clear someone is mentioning a person. Otherwise it's just bolded text. Also keep in mind that the example above is a bit nonstandard since you would not mention the same person 3 times in the same comment really. With the small avatar it's absolutely fine. I will look into proper alignment later. |
Interesting technique :-) Maybe someday I will have time to get up to date with the new CSS features... :-P
Quoting myself:
and @jancborchardt:
Gestalt law of proximity FTW! :-P
Right now, if Nextcloud was used in a right-to-left language like Arabic the look of the avatars will probably be the lesser of the problems :-P Jokes aside, as far as I know characters in those languages are still characters. I mean, even if they can be very complex like Chinese characters they are still monochromatic, so as long as the display name is shown in bold and the avatar is closer to it than to the previous character it would be the same as in Latin characters, wouldn't it? Or what I am missing? |
I am also for keeping avatars with the display names, and I also agree with moving them closer together. Fancy tricks are fancy, but I would not overlay them alone for accessibility, even if you can do some nice stuff with filters and what not. → Seconding @jancborchardt
Yay! Any contributions to this dark art are highly appreciated 😎 |
@jancborchardt since you're mentioning Github, as is obvious in this comment - your username is still very visible, even though it doesn't include an avatar. I don't have a problem with readability here: |
OK, I have realized that what I was missing is that the spacing used in logogram-based writing systems is not necessarily the same as in alphabet and syllabary-based languages (as the characters are logograms they could be written with the same spacing between each of them instead of grouped in words like in alphabets and syllabaries). Anyway, I think that is not a reason to drop avatars; I am sure that there are a lot of other details in logogram-based languages to take into account if an alternative to image avatars was needed due to those writing systems. |
@pixelipo the problem with readability there is that among the lowercased, similar length usernames, you actually have to read them to distinguish. Avatars help to identify people way quicker, and they don't disturb text flow. People also use emojis quite a lot, which are similar in size. 😉 |
The only username you can't mix up with another one is mine! 😆 |
OK, one last try proving my point and I'm out ☠️
That's all from me on this topic 👋 |
Point proven @pixelipo :) |
So what is the verdict here? Beta 4 is coming. Last chance to get this is. If there is discussion left I suggest to move it to 14 when we find a suitable solution. |
@pixelipo arguments convince me. Do we all agree on? I'd adapt the PR then. |
I would say so. 👍 Let's move this to 14. |
Yes makes a lot of sense.! |
While I disagree, through points stated above, I don't want to piss awesome folks off – so let's simply go without the avatars inside of comment text. :) (We can revisit it in 2-5 years when others might start doing it. ;) |
@@ -56,6 +56,9 @@ | |||
'{{/if}}' + | |||
'</li>'; | |||
|
|||
var AVATAR_SIZE_TEXT = '16'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jan asked me to use 21px for avatars in activities.
Maybe we can use the same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref #2012
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obsolete due to #7514 (comment) ff
And btw for the record, one product which does this is https://about.riot.im (usable IRC chat ;) |
Cannot test, requires side loaded, 3rd party service from an ads enterprise. Blocked here. #poweruser |
@blizzz feel free to run it yourself: https://github.com/vector-im/riot-web Also, the screenshots I posted above show everything you need to see. |
@nextcloud/designers We need a decision on this. What is the current status? Show it or not? Keeping a PR open for that long doesn't help anybody. 😢 |
@MorrisJobke The idea is to remove the avatars from mentions and unify their look with the ones used in Talk, so I think that we can close this pull request, as it will be overridden sooner or later (hopefully sooner than later ;-) ). |
@jancborchardt @dan0xii there is still something odd with line breaks when the message is rendered. It's seems right in the edit mode (content-editable=true), but not in the plain one.
Before:
Now: