FIX: Match default `<code>` padding to highlightjs padding

FIX: Match default <code> padding to highlightjs padding

Without this, the height of posts changes once highlightjs is lazy-loaded, potentially causing scrolling issues

diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index bb27732..77298b6 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -548,7 +548,7 @@ pre {
   code {
     word-wrap: normal;
     display: block;
-    padding: 5px 10px;
+    padding: 0.5em;
     color: $primary;
     background: blend-primary-secondary(5%);
     max-height: 500px;

GitHub sha: 2d3e50ae

1 Like