Merge pull request #81 from iSource/fix-code-copy-button

fix: code copy button position
This commit is contained in:
Yifei Zhang 2023-03-28 11:57:03 +08:00 committed by GitHub
commit 8f498075b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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