diff --git a/assets/css/_common/scaffolding/highlight/copy-code.scss b/assets/css/_common/scaffolding/highlight/copy-code.scss index 97c0704..f8bb38b 100644 --- a/assets/css/_common/scaffolding/highlight/copy-code.scss +++ b/assets/css/_common/scaffolding/highlight/copy-code.scss @@ -4,6 +4,12 @@ background: var(--highlight-background); margin-bottom: 26px; + //TODO Need fixed the copy button show position. + div:first-child { + display: absolute; + overflow-x: scroll + } + pre { position: relative; } @@ -11,15 +17,15 @@ table tbody tr { //TODO Fixed the too long code line over // layout background color. - background: #272822; + background: #272822; } - pre > code span { + /* pre > code span { white-space: break-spaces; overflow: hidden; word-break: break-all; word-wrap: break-word; - } + } */ } @if $codeblock_copy_btn_enable {