Skip to content

Commit

Permalink
✨ 代码块设置最大高度优化:适配行号 #106
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed May 6, 2024
1 parent 05453dd commit f7448fd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion style/module/code_block.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@
}
/* 代码块最大高度 */
/* .b3-typography .hljs, */
.protyle-wysiwyg .hljs {


.protyle-wysiwyg .code-block{
max-height: 800px;
overflow: auto;

}
.protyle-wysiwyg .hljs,
.protyle-linenumber__rows{
height:max-content;
}
.protyle-wysiwyg .code-block .protyle-attr {
top: -2px;
}

#preview .protyle-wysiwyg .hljs {
max-height: none;
}
Expand Down

0 comments on commit f7448fd

Please sign in to comment.