-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Don't show Followers / Following if both equal to zero #26292
Conversation
Maybe we can also remove the link if there's no followers or no following. |
"the link" as in https://instance/user/followers, or do you want me to reinstate the "0 Followers" indicator and just make it so that it doesn't point anywhere? |
TBH I am not a fan of toggling the UI elements too much. The questions are:
|
It is my opinion that it is unhealthy to "throw" people straight into a social media-like numbers game - without trying to downplay the importance of the existence of those features. I think it's one of the weakest points of the "GitHub model" - I find that it is distracting and counter-productive, both in the context of open-source and in a hypothetical, more "serious" business environment. From a purely aesthetic point of view, I could say that it is redundant. Of course, this can't be measured.
We could use the |
- This setting will not affect instances not running in prod mode. - This optimization aims to alleviate the "gamification" phenomenon present in other big platforms, while not compromising the social features of Gitea in any capacity.
9cdbe05
to
1b38797
Compare
FWIW, this behaviour is consistent with GitHub, so I'm okay with it. Just would like to see the mode dependency removed as well. |
I mean in this case: |
Keep in mind that this makes the person icon unclickable in some arbitrary cases, and clickable in some others. I think I'll remove the "clickability" (oh hey, new word!) entirely. |
I think we can simplify the template significantly with a CSS pseudo element, only needs a class on the parent to be able to select it: .follow-links a + a:before {
content: " · ";
} Then, just render the |
Since there are no more interesting to hide the numbers, I think we can close this. |
present in other big platforms, while not compromising the social
features of Gitea in any capacity.