diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index d95df90b1..8ad23e3a9 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -157,7 +157,7 @@ code { color: <>; background-color: <>; border: 1px solid <>; - white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; + white-space: pre-wrap; padding: 0 3px 2px; border-radius: 3px; font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}}; @@ -293,10 +293,13 @@ form.tc-form-inline { Markdown likes putting code elements inside pre elements */ pre > code { - padding: 0; + display: block; + padding: 0.5em; border: none; + white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; background-color: inherit; color: inherit; + overflow-x: auto; } /*