Repository navigation
Conversation
This feature causes the commit details to be automatically expanded when the repository home page loads.
Aaron1011
force-pushed
the
feature/show-commit-details
branch
from
June 25, 2020 03:58
68d6e07 to
a8e98b1
Compare
kidonng
reviewed
Jun 25, 2020
| // 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(() => { |
Member
There was a problem hiding this comment.
I think you should use element-ready instead.
Contributor
Author
There was a problem hiding this comment.
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.
Member
|
What does it look like on a commit with more than one line in the message?
Did you consider a css solution?
…On Thu, Jun 25, 2020, 1:06 AM Aaron Hill ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In source/features/show-commit-details.tsx
<#3278 (comment)>
:
> @@ -0,0 +1,24 @@
+import select from 'select-dom';
+import * as pageDetect from 'github-url-detection';
+
+import features from '.';
+
+function init(): void {
+ // 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(() => {
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3278 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGRMZERCZ6DJ24BBIRENP3RYLSNHANCNFSM4OHY3CQA>
.
|
Member
Member
|
Wait for #3277 to be accepted first, because it might not |
Member
|
Can you implement this via CSS as described in #3277 (comment) ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

LINKED ISSUES: Closes Show latest commit message on project page #3277
TEST URLS: https://github.com/sindresorhus/refined-github
SCREENSHOT:
