We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.0.3
当代码块内代码过长时,展开代码块后代码可以左右横向滚动。
代码内容被边缘遮挡,但是无法通过滚动进行被遮挡的代码内容查看
hexo new post anytitle
hexo clean && hexo server --open
v18.14.1 9.3.1
syntax_highlighter: highlight.js highlight: line_number: true auto_detect: false tab_replace: '' wrap: true hljs: false
# --------------------------------------------------------------------------------------- # Docs: https://keep-docs.xpoet.cn/basis/configuration-guide/code_block.html # --------------------------------------------------------------------------------------- code_block: # Toolbar include: "code copy", "code block collapse" and "code language" tools: enable: true # Option values: true | false style: mac # Option values: default | mac highlight_theme: default # Option values: default | obsidian
浏览器:Chrome - 119.0.6045.199 操作系统: Macos - 13.6 (22G120)
The text was updated successfully, but these errors were encountered:
通过本地的代码验证基本定位了问题在source/js/code-block.js,其中对于代码块高度超限之后设定了样式overflow = hidden,但在后续展开代码块时并没有解除这个限制,导致代码块无法横线滚动,已提交PR
source/js/code-block.js
overflow = hidden
处理结果:
Sorry, something went wrong.
perf(code-block): optimize style handle after expand codes (#284)
98cda7a
No branches or pull requests
Issue Checklist | Issue 检查清单
4.0.3
or later. (使用 Keep4.0.3
或更高版本)Expected behavior | 预期行为
当代码块内代码过长时,展开代码块后代码可以左右横向滚动。
代码内容被边缘遮挡,但是无法通过滚动进行被遮挡的代码内容查看
Actual behavior | 实际行为
Steps to reproduce the behavior | 重现步骤
hexo new post anytitle
创建新的posthexo clean && hexo server --open
Node.js and NPM Information | Node.js 和 NPM 信息
Hexo Configuration | Hexo 配置
Keep Configuration | Keep 配置
Other Information | 其它信息
浏览器:Chrome - 119.0.6045.199
操作系统: Macos - 13.6 (22G120)
The text was updated successfully, but these errors were encountered: