Repository navigation
Conversation
- Add addMinimizeMaximize function which adds buttons and click listeners for file headers - Modify isPr() regex to include all pull request URIs
|
Could you fix the code style comments from the CI? https://travis-ci.org/sindresorhus/refined-github/builds/113255609#L499 |
|
@hkdobrev Fixed! |
|
Could you add |
|
Or even better |
|
@hkdobrev I took your advice and ran with it using the zoom in/out cursors |
- Add class to parent block rather than individual blocks - Add custom CSS for hiding block - Increase area where minimize/maximize action can happen - Stop propagation on file-actions so it doesn't trigger minimize/maximize
|
Looking good! |
| } | ||
|
|
||
| function addMinimizeMaximize() { | ||
| if (!$('#toc .refined-github-btn-group').length && $('#toc .btn-group').length) { |
There was a problem hiding this comment.
Instead of wrapping everything in a if statement it would be better to invert the condition and do a early return instead.
|
Can you fix the merge conflict? And add it to the feature list in the readme, linking to this #50. |
- Invert 'if' statement at top of addMinimizeMaximize so that it returns early - Shortened '<div/>' to '<div>' - Improve ES6 function syntax - Improve cursor coverage
…add-minimize-maximize-buttons # Conflicts: # extension/content.js
|
Super. Thanks for this nice addition @tdlm :) |
|
Thanks, guys! |
This is for #50.