-
-
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
Fix width and margins of the notebook footer. #16383
Fix width and margins of the notebook footer. #16383
Conversation
Thanks for making a pull request to jupyterlab! |
bot please update snapshots |
Documentation snapshots updated. |
) | ||
); | ||
border: var(--jp-border-width) solid var(--jp-cell-editor-border-color); | ||
border: 0.8px solid var(--jp-cell-editor-border-color); |
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.
What is the rationale for the change to 0.8px border?
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.
@krassowski Thanks for the review. I will revert this change. If I am not mistaking, I tried to fit the style of the notebook cell border I saw in the dev tools.
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.
These snapshot changes appear unrelated and are causing the tests to fail I think:
Notice: 3 failed
[documentation] › test/documentation/general.test.ts:618:7 › General › Command Palette ─────────
[documentation] › test/documentation/internationalization.test.ts:14:7 › Internationalization › Menu
[documentation] › test/documentation/internationalization.test.ts:28:7 › Internationalization › Confirm language
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.
Do you mean that I should take back the snapshots from the main branch ?
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.
Yes, I think that after that these tests should pass. If not, then we need to investigate (it looks like maybe different runners get different variants of Chinese fonts?)
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.
…ns_of_the_notebook_footer
It previously did not account for the padding, this commit fixes it
@HaudinFlorence can you test the changes I pushed? |
@krassowski Thanks for working on this PR. In the none mode, the width and left margin are ok but the footer remains at its initial position when adding new cells: Screencast.from.05-06-2024.17.26.31.webmNote also that in both modes, the top margin of the footer is slightly too large |
Also correct clearing of margin-right to leave no trace
Thank you for this recording! I saw this happen earlier on CI (#14385); I now realise what is happening - the button is positioned below the spacer
I did not see the issue you pointer out in testing because I was reloading JupyterLab or opening a new notebook after changing settings. I think that you did not reload JupyterLab after the change and this revealed a bug in that the previously set This should be fixed by aafff6e.
They seem fine to me. If there was any margin added explicitly I would accommodate your suggestion by reducing it, but since there is no explicit |
@meeseeksdev please backport to 4.2.x |
…6453) Co-authored-by: Florence Haudin <99649086+HaudinFlorence@users.noreply.github.com>
@krassowski Thanks for fixing the bug and completed this PR. We can keep the gap as it is now |
FYI I opened two follow-up issues for edge cases: |
This PR fixes the width and the margins of the notebook footer.
References
This PR should fix issue #16380
Code changes
The proposes changes only concerns the style of the notebook footer and are in
packages/notebook/style/notebookfooter.css
User-facing changes
Backwards-incompatible changes