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
Gaps between plain text cell output lines in Chromium #7760
Comments
For me (OS X 10.14), your example code has the same appearance in Chrome and Firefox, and shows whitespace between the lines. That being said, this is all a problem of CSS. The fundamental issue is that the I don't think there's a perfect solution, but the issue can probably be reasonably fixed. All of the relevant CSS is in the jupyterlab/packages/rendermime/style/base.css Lines 53 to 76 in 95671a0
One possibility (which I just briefly tested out) is to give the colored spans a top and bottom border, like so: .jp-RenderedText pre .ansi-green-bg {
background-color: #00a250;
border-top: .15em solid #00a250;
border-bottom: .15em solid #00a250;
} You'd have to set this up for all of the colors, and then test out various outputs in order to make sure that the fix for this specific issue doesn't screw up the appearance of any other cases. Want to take a crack at a PR, @mgeier? |
How does it look for you in the Classic Notebook? |
The same, and for the same reason: |
72.0.1 (64-bit)
That sounds like an unnecessarily clunky and brittle work-around, there must be a better way! This, for example, seems to have decent interline spacing, but it still works in Chromium: https://nbsphinx.readthedocs.io/en/material-theme/code-cells.html#ANSI-Colors |
Issue is due to the line height is being added for pre tag
Since pre preserves both spaces and line breaks we can set line height to normal.
If you look at https://nbsphinx.readthedocs.io/en/material-theme/code-cells.html#ANSI-Colors also the line-height is set to normal. |
Rendermime celloutput gap issue(#7760)
Description
There is too much distance between lines in Chromium, in Firefox it's OK.
Reproduce
Example code to reproduce:
On Chromium, the result looks like this:
There are ugly gaps between the lines.
Example notebook: https://github.com/spatialaudio/nbsphinx/blob/master/doc/code-cells.ipynb
Expected behavior
On Firefox, it looks like this:
Context
The text was updated successfully, but these errors were encountered: