Skip to content

Commit

Permalink
✨ 代码块设置最大高度优化:适配行号
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed May 6, 2024
1 parent e419596 commit 5934e7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion style/module/code_block.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@
.protyle-wysiwyg .hljs,
.protyle-linenumber__rows{
height:max-content;
margin-top: 10px;
}
.protyle-wysiwyg .code-block .protyle-attr {
top: -2px;
}

#preview .protyle-wysiwyg .hljs {
.protyle-wysiwyg .code-block .protyle-action .b3-tooltips__nw {
top: 25px;
}

#preview .protyle-wysiwyg .code-block {
max-height: none;
}
/* 代码块 */
Expand Down
1 change: 1 addition & 0 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1141,3 +1141,4 @@ body

}


0 comments on commit 5934e7d

Please sign in to comment.