-
Notifications
You must be signed in to change notification settings - Fork 160
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
CM6: Fix spacing between editors #728
CM6: Fix spacing between editors #728
Conversation
Bot please update playwright snapshots |
Playwright ubuntu-22.04 snapshots updated. |
Playwright windows-latest snapshots updated. |
In the CM6 screenshot there is still a gap (white) between the local and remote editor and the merged result view. We should get rid of that too before closing #720. |
(Happy to merge this as it currently is, as it is a good improvement though!) |
@vidartf I did not see the white remainig spaces. I am proposing a fix for this in commit c285455 (not sure that it is the best solution) : it consists in adding the cell background color style to the left and right editors (as well as in the central one since I guess it may happen that this white gap occurs in this editor as well). Note that there is still a gap in the gutter. |
I think the underlying problem is that the central editor is higher for some reason. You can see this even with the old spacing. Inspecting this closer in CSS, it seems to be from some remaining border styles being applied: /* merge.css */
.jp-Notebook-merge .cm-merge-m-chunk-end-either, .jp-Notebook-merge .cm-merge-m-chunk-end-mixed:not(.cm-merge-m-chunk-custom) {
border-bottom: 1px solid var(--jp-merge-either-color1);
} This one should be switched to whatever (non-space taking) style we are using for the other chunk starts/ends. |
There seems to be a discrepancy between the height of the local and remote editors and the height of the central one. This is due to the fact that adding or not |
Bot please update playwright snapshots |
This is normally fixed in commit 90bb3ce |
…e cell spaced together.
0ea694c
to
97aedce
Compare
bot please update snapshots |
After having a look at the css, I have been updated on the changes. But I don't understand where the style of the decoration for the start / end of the chunks is defined now... without using the |
c770c71
to
4ee8b25
Compare
bot please update snapshots. |
…g them using ::before and ::after.
I am now ok with this and this should be fixed with c2d47fd. The result is now looking like this for version CM6: |
bot please update snapshots |
bot please update snapshots |
I think you are missing "playwright". We can change the trigger phase (which we did recently elsewhere) to simplify it, but in this repo it is still: bot please update playwright snapshots |
My bad... Thanks Mike |
Playwright windows-latest snapshots updated. |
Playwright ubuntu-22.04 snapshots updated. |
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.
Looks good to me, thank you @HaudinFlorence!
This PR fixes ##720
The gap between the different editors that was put to 10 px has been removed.
CM5 version
CM6 version