Skip to content

Remove minimise/maximise all buttons - #93

Merged
sindresorhus merged 1 commit into
masterfrom
collapse-all-buttons-remove
Mar 22, 2016
Merged

sindresorhus merged 1 commit into
masterfrom
collapse-all-buttons-remove

Conversation

@hkdobrev

Copy link
Copy Markdown
Contributor

Keep the collapse behaviour when clicking file headers using a click handler.
No need for isCompare() check anymore.
Simplify other click delegate event a bit using Sprint and keep code-style consistent.

Closes #85

@hkdobrev
hkdobrev force-pushed the collapse-all-buttons-remove branch from 2f61c96 to 4d3cd9b Compare March 21, 2016 20:53
@sindresorhus

Copy link
Copy Markdown
Member

LGTM. @paulmolluzzo ?

Keep the collapse behaviour when clicking file headers using a click handler.
No need for `isCompare()` check anymore.
Simplify other click delegate event a bit using Sprint and keep code-style consistent.

Closes #85
@hkdobrev
hkdobrev force-pushed the collapse-all-buttons-remove branch from 4d3cd9b to 30335ad Compare March 22, 2016 10:25
@hkdobrev

Copy link
Copy Markdown
Contributor Author

@sindresorhus amended.

@paulmolluzzo

Copy link
Copy Markdown
Contributor

Can this blob of CSS get deleted too? I can't find a place where it'll actually apply. It seems that the buttons @hkdobrev removed were the buttons that made the class names used in the selectors.

https://github.com/sindresorhus/refined-github/blob/30335ad753b5b7edfef7bcbf45f6dce39121de5b/extension/content.css#L193-L199

@hkdobrev

Copy link
Copy Markdown
Contributor Author

@paulmolluzzo No, from the ones you've linked to the first one is changing the cursor to zoom-in when a file is collapsed, the second is actually hiding the diff for a file. All the js does is toggling the refined-github-minimized class which is used in the CSS. Just like before.

@paulmolluzzo

Copy link
Copy Markdown
Contributor

OK, then I'm good with this. 👍 LGTM

sindresorhus added a commit that referenced this pull request Mar 22, 2016
@sindresorhus
sindresorhus merged commit 1b1e614 into master Mar 22, 2016
@sindresorhus
sindresorhus deleted the collapse-all-buttons-remove branch March 22, 2016 14:06
sindresorhus added a commit that referenced this pull request Mar 22, 2016
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.

3 participants