Skip to content

Commit f12764f

Browse files
committed
Backport PR #7718: Disable output contents from overflowing page width.
A scrollbar will appear when the output is too wide. closes #7701 alternative to #7721
1 parent 3740b49 commit f12764f

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎IPython/html/static/notebook/less/outputarea.less‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ div.output_area pre {
9494
/* This class is for the output subarea inside the output_area and after
9595
the prompt div. */
9696
div.output_subarea {
97+
// Don't let contents overflow page area.
98+
overflow-x: auto;
9799
padding: @code_padding;
98100
.box-flex1();
99101
}

‎IPython/html/static/style/ipython.min.css‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎IPython/html/static/style/style.min.css‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)