Skip to content
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

Use pseudo-elements instead of border to preserve line height #687

Merged
merged 5 commits into from
Sep 29, 2023

Conversation

krassowski
Copy link
Member

Fixes #674

This PR re-implements chunk borders with pseudo-elements instead of border-top/border-bottom.

Note: The obvious alternative solution of using negative margin does not work because CM6 calculates line height to programmatically set the height of gutter (e.g. line numbers), which does not account for margins.

Before After
image image

Copy link
Collaborator

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @krassowski

krassowski and others added 3 commits September 28, 2023 14:38
Note: using negative margin does not work because CM6
calculates line height to programmatically set the height
of gutter (e.g. line numbers), which does not account for margins.
@fcollonval
Copy link
Collaborator

bot please update playwright snapshots

@github-actions
Copy link
Contributor

Playwright windows-latest snapshots updated.

@github-actions
Copy link
Contributor

Playwright ubuntu-22.04 snapshots updated.

@fcollonval fcollonval added the bug label Sep 29, 2023
@fcollonval
Copy link
Collaborator

Merging to reduce multiple rebase / update snapshots

@fcollonval fcollonval merged commit d4a6c77 into jupyter:master Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CM6: Fix border styles / line spacing
2 participants