💄 Use scroll to show overflow code block content.

This commit is contained in:
凡梦星尘 2022-08-15 21:36:22 +08:00
parent 3de3e1de4d
commit 5fb6618bd3

View File

@ -4,6 +4,12 @@
background: var(--highlight-background); background: var(--highlight-background);
margin-bottom: 26px; margin-bottom: 26px;
//TODO Need fixed the copy button show position.
div:first-child {
display: absolute;
overflow-x: scroll
}
pre { pre {
position: relative; position: relative;
} }
@ -14,12 +20,12 @@
background: #272822; background: #272822;
} }
pre > code span { /* pre > code span {
white-space: break-spaces; white-space: break-spaces;
overflow: hidden; overflow: hidden;
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
} } */
} }
@if $codeblock_copy_btn_enable { @if $codeblock_copy_btn_enable {