mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
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
This commit is contained in:
parent
52b4e3ad16
commit
53293284c9
2 changed files with 7 additions and 3 deletions
|
@ -88,7 +88,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.code-mirror :global(.CodeMirror) {
|
.code-mirror {
|
||||||
height: auto;
|
:global(.CodeMirror) {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
:global(.CodeMirror-wrap pre) {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -174,7 +174,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.CodeMirror) {
|
:global(.CodeMirror) {
|
||||||
background: var(--code-bg);
|
background: var(--code-bg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue