Skip to content

Commit

Permalink
misc:add word wrap to HTML editor (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
rk9595 authored Oct 13, 2024
1 parent 36cf85b commit 39e1a03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/HTMLEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export default {
el.attachShadow({ mode: 'open' });
el.shadowRoot.innerHTML = `
<style>
.codeflask .codeflask__flatten { font-size: 15px; }
.codeflask .codeflask__flatten {
font-size: 15px;
white-space: pre-wrap ;
word-break: break-word ;
}
.codeflask .codeflask__lines { background: #fafafa; z-index: 10; }
.codeflask .token.tag { font-weight: bold; }
.codeflask .token.attr-name { color: #111; }
Expand Down

0 comments on commit 39e1a03

Please sign in to comment.