New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move download-folder-button
to the dropdown
#3952
Conversation
@fregante is this good? |
<a | ||
className="dropdown-item btn-link" | ||
href={downloadUrl.href} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a | |
className="dropdown-item btn-link" | |
href={downloadUrl.href} | |
> | |
<a className="dropdown-item btn-link" href={downloadUrl.href}> |
Is btn-link
required here? It's not a <button>
to begin with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will double check
Co-authored-by: Federico <me@fregante.com>
</a> | ||
); | ||
for (const deleteButton of select.all(`form[action^="/${getRepo()!.nameWithOwner}/tree/delete"]:not(.rgh-download-folder)`)) { | ||
deleteButton.classList.add('rgh-download-folder'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add another TODO here?
After the outstanding comments, feel free to merge this, #3962 and release a new version via the Actions repo tab 🚢 |
LINKED ISSUES:
Resolves Move
download-folder-button
to the dropdown #3949TEST URLS:
https://github.com/sindresorhus/refined-github/tree/main/media
SCREENSHOT:
I added
repeatOnBackButton: true,
since I found that when going from dir to dir it was not applying unless I refreshed (nothing to do with the current PR)