Browse Source

fix: code copy button position

iSource 1 year ago
parent
commit
55f37248f7
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/styles/markdown.scss

+ 4 - 4
app/styles/markdown.scss

@@ -839,7 +839,7 @@
 
 .markdown-body .highlight pre,
 .markdown-body pre {
-  padding: 16px;
+  padding: 16px 16px 8px 16px;
   overflow: auto;
   font-size: 85%;
   line-height: 1.45;
@@ -849,11 +849,11 @@
 
 .markdown-body pre code,
 .markdown-body pre tt {
-  display: inline;
-  max-width: auto;
+  display: inline-block;
+  max-width: 100%;
   padding: 0;
   margin: 0;
-  overflow: visible;
+  overflow-x: scroll;
   line-height: inherit;
   word-wrap: normal;
   background-color: transparent;