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: none but 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)
Description
recently-pushed-branches-enhancementsfeature #3753We tried making that feature "look good" via CSS but we were limiting ourselves too much.
A better solution would be:
display: nonebut more like.visuallyhidden, or else the next step won't work)selector-observerThis means:
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)