diff --git a/src/layout/css/style.scss b/src/layout/css/style.scss index 2459fe5f..0ee5586f 100644 --- a/src/layout/css/style.scss +++ b/src/layout/css/style.scss @@ -129,7 +129,7 @@ $extra-media-width: 320px; color: black; display: block; font-family: 'Courier New', Courier, monospace; - height: $extra-height - 2 * $spacing; + max-height: $extra-height - 2 * $spacing; overflow-y: scroll; padding: $spacing; white-space: pre-wrap; diff --git a/src/pytest_html/resources/style.css b/src/pytest_html/resources/style.css index e3772743..e57717ec 100644 --- a/src/pytest_html/resources/style.css +++ b/src/pytest_html/resources/style.css @@ -110,7 +110,7 @@ span.xpassed, color: black; display: block; font-family: "Courier New", Courier, monospace; - height: 230px; + max-height: 230px; overflow-y: scroll; padding: 5px; white-space: pre-wrap;