-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Fix for #7565 to move add cell button to the inner notebook area #7720
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
base: main
Are you sure you want to change the base?
Conversation
|
bot please update playwright snapshots |
|
Looks like I don't have permissions to update the snapshots. I also need a label applied to this PR. I believe "enhancement" would be appropriate |
|
bot please update playwright snapshots |
KH-Coder865
left a comment
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 think after removing these empty CSS blocks of code, everything looks fine.
| body[data-notebook='notebooks'] .jp-Notebook-footer { | ||
| background: unset; | ||
| width: 100%; | ||
| margin-left: unset; | ||
| } |
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.
It would be great if these empty CSS blocks could be deleted for the sake of better maintainability.
| body[data-notebook='notebooks'] .jp-WindowedPanel-viewport { | ||
| background: var(--jp-layout-color0); | ||
| box-shadow: var(--jp-elevation-z4); | ||
|
|
||
| /* Extra padding at the top and bottom so the notebook looks nicer */ | ||
| padding-top: calc(2 * var(--jp-notebook-padding)); | ||
| padding-bottom: calc(2 * var(--jp-notebook-padding)); | ||
| } |
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.
Similarly here.
In both desktop and mobile the add cell button design did not match JupyterLab's design for the add a cell button. This change adjusts the CSS to bring the button into the inner notebook area to harmonize the designs.
Addresses #7565
Original Mobile (on hover):


Original Desktop (on hover):
Modified Mobile (on hover):


Modified Desktop (on hover):
Button is not visible when not hovering:
