You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Private repos could have forks disabled (which is quite useful as forks of private repos are or used to be public by default). If there are no forks and creating new forks is disabled for the repo, the Fork button serves no purpose. We can hide it.
Here's a screenshot and DOM tree of a disabled fork button with 0 forks:
This would also leave more space for other extensions adding this there like Sourcegraph or even some things from Refined GitHub which are on the line of the repository name.
It may look like noise, but if I didn't see some of the disabled buttons GitHub shows (e.g. the Edit button in commit files) I wouldn't know why that's disabled and I'd scratch my head.
Edit: also this issue is asking for the opposite of one of our features: #1646
Reacted by Salmanul Farzy, Niklas Mischkulnig, Sravan S, Scott Busche, ash, Vern Martin and Lea Verou
If the intent is saving space, I'd suggest just hiding the text and the number if the button is disabled. This can probably be done with CSS or in 3 lines of JS (plus boilerplate)
Activity
fregante commentedon Oct 30, 2018
Related UX arguments: https://ux.stackexchange.com/q/120848/35104
It may look like noise, but if I didn't see some of the disabled buttons GitHub shows (e.g. the Edit button in commit files) I wouldn't know why that's disabled and I'd scratch my head.
Edit: also this issue is asking for the opposite of one of our features: #1646
fregante commentedon Jan 17, 2019
If the intent is saving space, I'd suggest just hiding the text and the number if the button is disabled. This can probably be done with CSS or in 3 lines of JS (plus boilerplate)