From 53293284c9346c296bb24becae69e67e49adcb4c Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Thu, 1 Sep 2022 15:30:17 +0200 Subject: [PATCH] Break long words in CodeMirror (#2044) * Break long words in CodeMirror Credit to Marko Letic: https://stackoverflow.com/a/57377527 * Move rule to more general CodeMirror component --- ts/editor/CodeMirror.svelte | 9 +++++++-- ts/editor/plain-text-input/PlainTextInput.svelte | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ts/editor/CodeMirror.svelte b/ts/editor/CodeMirror.svelte index f9eaeeb41..12d3e73b2 100644 --- a/ts/editor/CodeMirror.svelte +++ b/ts/editor/CodeMirror.svelte @@ -88,7 +88,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/ts/editor/plain-text-input/PlainTextInput.svelte b/ts/editor/plain-text-input/PlainTextInput.svelte index d3479f418..96792d56a 100644 --- a/ts/editor/plain-text-input/PlainTextInput.svelte +++ b/ts/editor/plain-text-input/PlainTextInput.svelte @@ -174,7 +174,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html border: none; border-radius: 5px; } - :global(.CodeMirror) { background: var(--code-bg); }