From 49c4fc350938b7bc8280f72ec4a8ef70f2648f65 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 2 Feb 2020 23:19:41 +0100 Subject: [PATCH] whitespace wrap pre because scroll is not working --- default.scss | 1 + styles.css | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/default.scss b/default.scss index 04cfbf4..bdad53c 100644 --- a/default.scss +++ b/default.scss @@ -11,6 +11,7 @@ pre { counter-reset: line; width: 100%; box-sizing: border-box; + white-space:pre-wrap; span { display: block; diff --git a/styles.css b/styles.css index 96498ba..361df3e 100644 --- a/styles.css +++ b/styles.css @@ -46,7 +46,8 @@ pre { overflow-x: scroll; counter-reset: line; width: 100%; - box-sizing: border-box; } + box-sizing: border-box; + white-space:pre-wrap; } pre span { display: block; } pre span:before {