Closed rybak closed 1 year ago
I'm trying out this design, with button in the top right corner, for Gitea implementation:
Screenshot of https://git.plastiras.org/Tha_14/Antidote/commit/f84a08f1ac5312acc9ccedff25e6957e575f03ff
On a regular commit page:
On a commit page in a PR:
/commit/
detection for PR pages in #isAGitHubCommitPage
. Commits in PRs have /commits/
in the URL.
Context
There are three components to the commit reference: hash, subject, and date. On GitHub, two of the are at the bottom of the commit's view (date and hash), and one is at the top (subject). On GitHub, as of version 0.8-alpha, the userscript puts the button (technically) in the bottom left corner, next to author information, which includes the date. The commit's hash is in the bottom right corner, next to a link to the parent commit.
Putting the button on the left (but not necessarily at the bottom) also mimics GitHub's own "Copy path to the file" button:
Idea
What if the button was on the left of the subject, next to the "Browse files" button?