We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#12317 (comment)
2024.10.7:这样改之后选择文本会向上全选,不行
.protyle-linenumber__rows { position: sticky; left: 0; background-color: rgb(243,243,244); padding-left: 0; padding-right: 1em; min-width: auto; margin-right: 0; }
乍一看感觉没什么问题:
但选中块之后就会出现跟 #12105 相同的颜色问题:
.code-block:not([linenumber="false"]) .protyle-linenumber__rows { position: absolute; left: 1.4em; } .code-block:not([linenumber="false"]) .hljs { margin-left: 1.8em; } /* 来源于 https://ld246.com/article/1724861627569 */
在 1000 行以前样式都正常(还能顺便解决 #11377 ):
超过 1000 行之后文本就会重叠:
The text was updated successfully, but these errors were encountered:
哥,您是思源请的产品经理吗
Sorry, something went wrong.
有纵向滚动条时,向上滚动后下部无背景遮挡。
.hljs 上可能会设置 max-height 这样的话无法兼容竖向滚动条
确实,难搞
No branches or pull requests
#12317 (comment)
几个方案
01
2024.10.7:这样改之后选择文本会向上全选,不行
乍一看感觉没什么问题:
但选中块之后就会出现跟 #12105 相同的颜色问题:
02
在 1000 行以前样式都正常(还能顺便解决 #11377 ):
超过 1000 行之后文本就会重叠:
The text was updated successfully, but these errors were encountered: