enhance codeblock look

This commit is contained in:
Mystikfluu 2022-08-26 19:38:18 +02:00
parent 0fdfbe1dae
commit f99eca0e47
2 changed files with 7 additions and 1 deletions

View File

@ -74,6 +74,11 @@ button {
overflow: hidden;
}
.ovfl-bw {
overflow-wrap: break-word;
overflow: hidden;
}
#post-text, button {
color: var(--text-color);
border-radius: 5px;

View File

@ -43,7 +43,8 @@ function filterPost(text){
if(cdblregex.test(match)) {
let paddlen = 3
out = out.substring(paddlen,out.length-paddlen).trim()+"\n"
return `<pre><code>${out}</code></pre>`
out = newlineify(out)
return `<code class="ovfl-bw">${out}</code>`
}
out = newlineify(out)