Skip to content

Move "Report repository" link to bottom of sidebar in clean-repo-sidebar - #6500

Merged
kidonng merged 1 commit into
mainfrom
clean-repo-sidebar
Apr 12, 2023
Merged

kidonng merged 1 commit into
mainfrom
clean-repo-sidebar

Conversation

@kidonng

@kidonng kidonng commented Apr 12, 2023 •

Copy link
Copy Markdown
Member

Resolve #6498

I'm tagging as "bug" per original issue but this seems to be "enhancement"?

Test URLs

https://github.com/refined-github/refined-github

Screenshot

Desktop Mobile
image image

@kidonng kidonng added the bug label Apr 12, 2023
async function moveReportLink(): Promise<void> {
await domLoaded;

const reportLink = select('.Layout-sidebar a[href^="/contact/report-content"]')!.parentElement!;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this should use :has

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine as is for now, especially because it wouldn't shorten the code much

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested but looks good as is. Bug or enhancement 🤷‍♂️

I'd just look at it on mobile before merging

@kidonng
kidonng merged commit 8e06919 into main Apr 12, 2023
@kidonng
kidonng deleted the clean-repo-sidebar branch April 12, 2023 14:57
@fregante fregante changed the title Move "Report repository" link to bottom of sidebar Move "Report repository" link to bottom of sidebar in clean-repo-sidebar Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Reposition new "report repository" in clean-repo-sidebar

2 participants