-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Move close/cancel buttons to the left - Fixes #410 #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update the comment box screenshot which is used in the readme as well? Many thanks!
|
Sure. |
|
Huh. I wanted to take a screenshot in Firefox and it seems the comment box looks completely different there than in Chrome (where I'm usually hanging around). It got an endless stream of additional buttons and a "Styling with Markdown is supported" in place where the "Close issue" button should have gone. 🤔 Any suggestions? I think putting the button kind of in the mid of the row is weird. The only solution that's spontaneously coming to my mind is to not put the "Close issue" button on the left, but just increase the distance to the "Comment" button. (That may look... weird? Badly designed? Not sure.) Hm. (As I have not done too many Pull Requests yet: Is this appropriate to discuss here or would it rather go into the original issue?) |
|
@loilo I'd suggest to not worry about Firefox now. All these additional buttons are the default for GitHub now and we don't have full Firefox support for the extension yet. We'd need look into it more, but we have an issue about that already: #71. Just take the screenshot in Chrome so we could merge as it'd help Chrome users for sure. Separately, we need to spend some time fixing Firefox issues probably with separate issues for outstanding things. |
|
Uhm. Yes. Let's assume that I did not totally forget the fact that this is a Chrome extension. 🙈 |
Hehe 😆 No worries. It should soon be a Firefox extension as well --> #403. |
|
Okay, updated screenshot to use the moved button, the current GitHub design (font, primary button color) and @sindresorhus' latest avatar. 😝 |
|
I may need to clarify this: My firefox does not have any of the Refined GitHub scripts running. I only wanted to make the screenshot there to see if its rendering is superior to Chrome in any way. |
|
@loilo ah, that makes sense. Thanks for clarifying! |
|
I don't care, but I agree that this would actually give it a more consistent look. I'll add that. |
|
@jgierer12 Can you tell me where to find that inline commenting option? |
|
|
Thanks. |
|
Regarding the inline comments: Would you only move the "Cancel" to the left or the "Add single comment" option as well? Thematically, only the Cancel button should go left. Regarding the issue this PR tries to solve—misclicking—both should go left. Thoughts? |
Yes, I'd only move "Cancel" |
|
I'd prefer only the cancel button to go left. You already have a shortcut for the primary button - ⌘/Ctrl+Enter. And also a misclick on the other button is not a destructive action. |
|
Okay, that's added too. |
|
@loilo Can you also add it to the feature highlight in the readme? https://github.com/sindresorhus/refined-github#highlights |
|
There you go. |
|
Thanks! 🎉 |
|
My pleasure. 🙃 |
|
Great work @loilo 😄 |
|
Thanks. I'm thinking of aiming for #341 next, but I'm not sure yet if I've got the time. :) |




Moves the "Close issue" button in the issue comment section to the left for the sake of accuracy.