clean-repo-filelist-actions - Restore feature#9265
Conversation
| const codeButton = $optional('& > button', container); | ||
| container.classList.add('rgh-clean-repo-filelist-actions'); | ||
|
|
||
| cleanAddFileButton(addFileButton); |
There was a problem hiding this comment.
Implemented by GitHub in smaller viewports 👍
| return; | ||
| } | ||
|
|
||
| cleanCodeButton(codeButton); |
There was a problem hiding this comment.
This can now be done via CSS.
| import './clean-repo-filelist-actions.css'; | ||
|
|
||
| /** Add tooltip on a wrapper to avoid breaking dropdown functionality */ | ||
| function addTooltipToSummary(childElement: Element, tooltip: string): void { |
There was a problem hiding this comment.
GitHub hides a label and doesn't add any tooltips. I reckon we can do the same.
However maybe we should also replicate the responsive behavior: only hide "Code" in small windows?
| /* Hide agent */ | ||
| button:has(svg.octicon-agent) { | ||
| display: none; | ||
| } |
There was a problem hiding this comment.
I found no button that triggers the exact same UI.
The button in the header with the same icon opens a popup with textarea that seemingly does the same thing, but the UI is different.
I think they're functionally the same so I'm hiding this one.
Co-authored-by: Grigory <[email protected]>
|
Thanks for fixing it! |
|
It's GitHub that should stop using my non-public email for suggestions |
|
There's a setting for that (I thought) |
Co-authored-by: Grigory <[email protected]> Co-authored-by: fregante <[email protected]>



clean-repo-filelist-actionsis broken #9122Test URLs
https://github.com/refined-github/refined-github
Screenshot