-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Only show "Shut Down Kernel" if kernel is running #12919
Only show "Shut Down Kernel" if kernel is running #12919
Conversation
Thanks for making a pull request to jupyterlab! |
bot please update snapshots |
bbb12c7
to
0878902
Compare
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.
Thanks @krassowski
Would you mind moving up a bit the fake mouse pointer in https://github.com/krassowski/jupyterlab/blob/0878902a485a4316c791c5e8baa8d90ccaeb7bd2/galata/test/documentation/general.test.ts#L217
This will keep consistent its position with the Copy Shareable Link menu entry.
1f86374
to
72f8d27
Compare
@@ -38,7 +38,7 @@ export function generateArrow( | |||
* @returns The svg to inject in the page | |||
*/ | |||
export function positionMouse(position: { x: number; y: number }): string { |
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.
I was thinking if we should make the signature something like position: { x: number | ElementHandle, y: number | ElementHandle }
to allow setting one of the coordinates manually while the other would be in the middle of BBox of the element. We can extract this to a new issue (along with changing the cursor to something nicer, and adding it to more screenshots).
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.
Nice suggestion.
and fix hover effect
72f8d27
to
4fdbe15
Compare
Thanks, done! |
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.
Thanks @krassowski
@meeseeksdev please backport to 3.4.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
References
Fixes #11392
Code changes
Added
.jp-mod-running
as explored earlier in #11392 (comment)User-facing changes
"Shut Down Kernel" only shows up for things with a kernel
Backwards-incompatible changes
None