Skip to content

Add 'show-commit-details' feature - #3278

Closed
Aaron1011 wants to merge 1 commit into
refined-github:masterfrom
Aaron1011:feature/show-commit-details
Closed

Aaron1011 wants to merge 1 commit into
refined-github:masterfrom
Aaron1011:feature/show-commit-details

Conversation

@Aaron1011

Copy link
Copy Markdown
Contributor

This feature causes the commit details to be automatically expanded when
the repository home page loads.
@Aaron1011
Aaron1011 force-pushed the feature/show-commit-details branch from 68d6e07 to a8e98b1 Compare June 25, 2020 03:58
// Ideally, we would run this immediately on page load, but there
// seems to be a race condition. Delaying by 100ms makes it work
// consistently.
setTimeout(() => {

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.

I think you should use element-ready instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The button exists in the HTML sent by the server. I think there are other elements that need to be created before the click will work, but I haven't been able to determine what they are.

@busches

busches commented Jun 25, 2020 via email

Copy link
Copy Markdown
Member

@kidonng

kidonng commented Jun 25, 2020 •

Copy link
Copy Markdown
Member

Did you consider a css solution?

.Details[data-issue-and-pr-hovercards-enabled]:not(.Details--on) .Details-content--hidden {
  display: block !important;
  height: 2em;
  overflow: hidden;
}

1

@fregante

Copy link
Copy Markdown
Member

Wait for #3277 to be accepted first, because it might not

@fregante

fregante commented Jul 6, 2020 •

Copy link
Copy Markdown
Member

Can you implement this via CSS as described in #3277 (comment) ?

@fregante fregante closed this Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Show latest commit message on project page

4 participants