refined-github/refined-github
Restore `recently-pushed-branches-enhancements` feature
Offen
#6.295 geöffnet am 04.02.2023
enhancementhelp wanted
Repository-Metriken
- Stars
- (22.918 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 1T 18h) (44 gemergte PRs in 30 T)
Beschreibung
Description
We tried making that feature "look good" via CSS but we were limiting ourselves too much.
A better solution would be:
- Load fragment on pages that don't have it, like before
- Hide box via CSS (not
display: nonebut more like.visuallyhidden, or else the next step won't work) - Detect it via
selector-observer - Add a custom button somewhere in the header (e.g. a green PLUS next to the PRs tab)
- When clicked, show the whole element unchanged
This means:
- We have total control over the display of the button
- We never have to alter the style of the actual branch list
Screenshot
No response
Example URLs
https://github.com/refined-github/refined-github (hide native box) https://github.com/refined-github/refined-github/issues (load box and hide it)