make codeblocks stand out more

This commit is contained in:
Mystikfluu 2022-08-27 00:18:47 +02:00
parent f99eca0e47
commit f79ea6f8e1
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ button {
.ovfl-bw { .ovfl-bw {
overflow-wrap: break-word; overflow-wrap: break-word;
overflow: hidden; overflow: hidden;
background-color: var(--bg-color);
} }
#post-text, button { #post-text, button {

View File

@ -44,7 +44,7 @@ function filterPost(text){
let paddlen = 3 let paddlen = 3
out = out.substring(paddlen,out.length-paddlen).trim()+"\n" out = out.substring(paddlen,out.length-paddlen).trim()+"\n"
out = newlineify(out) out = newlineify(out)
return `<code class="ovfl-bw">${out}</code>` return `<div class="ovfl-bw"><code>${out}</code></div>`
} }
out = newlineify(out) out = newlineify(out)