From d53d8b86149308486c1d6e2af4fb7a628fe4cceb Mon Sep 17 00:00:00 2001 From: josc146 Date: Tue, 12 Mar 2024 22:41:12 +0800 Subject: [PATCH] fix https://github.com/josStorer/chatGPT-search-engine-extension/issues/23 again (caused by dcd34156) --- src/content-script/styles.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content-script/styles.scss b/src/content-script/styles.scss index 32c27f4..a80da1a 100644 --- a/src/content-script/styles.scss +++ b/src/content-script/styles.scss @@ -478,7 +478,7 @@ margin-bottom: 0; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 12px; - word-wrap: normal; + word-wrap: break-word; background-color: var(--code-background-color); } @@ -874,8 +874,8 @@ .markdown-body pre > code { padding: 0; margin: 0; - word-break: normal; - white-space: pre; + word-break: break-word; + white-space: pre-wrap; background: transparent; border: 0; } @@ -886,7 +886,7 @@ .markdown-body .highlight pre { margin-bottom: 0; - word-break: normal; + word-break: break-word; } .markdown-body .highlight pre, @@ -906,7 +906,7 @@ margin: 0; overflow: visible; line-height: inherit; - word-wrap: normal; + word-wrap: break-word; background-color: transparent; border: 0; }