Improve clean-repo-sidebar - #3974
Conversation
|
Thanks for all your the prs!
Would running |
This comment has been minimized.
This comment has been minimized.
|
As we discussed in the previous PR, we can never hide the whole about section because we have repo-age. If people disable it, tough luck. Also since you’re moving the entire release link instead of just hiding parts of it, I’d suggest testing repos that have tags but not releases. I think they also appear there, just differently. |
|
Love the screenshots, thanks! |
|
It works for repos with tags instead of releases, but the vertical alignment is a bit wonky: Is it worth fixing this? I don't remember seeing a lot of repos with this config. |
|
The spacing on repo-age seems excessive too, especially compared to the url just above it |
It matches the one of the license link, which is absent here. So fixing this would also mean changing the spacing of the license link too. |
|
Let's just update the tag’s spacing if it exists. Probably something like |
I thought about it but the link is unique and it’s not an obvious feature. |
|
https://github.com/broofa/npmgraph This is misaligned as well, I'm not sure if there's a clean way other than finding that and removing If you prefer not fixing all of these issues, we can merge this as is and I'll open a new issue. |
Ugh 😰 I think we don't have a choice. The release widget uses
|
Should this be in a separate PR? |
Up to you:
Those fixes are only necessary due to this feature anyway, so it's ok if they're part of the same PR |
It's also in the little modal box that pops up when you click the "Sponsor" button in the repo header. |
|
Unfortunately if there are no releases there's a blank space: Source: https://github.com/justinfrankel/licecap Without RG: I think this is because we only hide the Release title via CSS but not the whole section? Generally I think that the new CSS-only rules are a little brittle so we should probably just use some JS to ensure we're selecting the right elements and using the right logic. As always, we can merge as is and open a new issue. Still up to you |
|
All problems should be fixed now. I tested every link in Firefox & Chromium, with and without In the end I had to rely on an ugly
@fregante can I get your definitive opinion on this before I redo the screenshots? |
Let's leave it as is for now
Yeah that's ok for now, better than having to cover every single situation
Thanks for being so thorough! It's a feature with many moving parts
I'd say they're fine. No need to be super-exact, we just need to show what the feature does approximately. |
fregante
left a comment
There was a problem hiding this comment.
Maybe a couple of small changes
Co-authored-by: Federico <[email protected]>







LINKED ISSUES: Closes Further
clean-repo-sidebar#3972TEST URLS:
Description, releases & no packages
Packages
No releases
Empty meta
Readme demo screenshot
This PR:
Moves the latest release link to the "About" section and hides the "Releases" section→ Hides everything in the "Releases" section except the latest tag/release and merge "About" with "Releases"Hides the whole "About" section if it's completely empty (no description, no license, no releases)(Improveclean-repo-sidebar#3974 (comment))clean-repo-sidebar#3974 (comment))TODO:
repo-age