Skip to content
New issue

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

评论区代码块儿渲染没有滚动也没有换行 #465

Closed
eryajf opened this issue Mar 19, 2023 · 3 comments · Fixed by #467
Closed

评论区代码块儿渲染没有滚动也没有换行 #465

eryajf opened this issue Mar 19, 2023 · 3 comments · Fixed by #467

Comments

@eryajf
Copy link
Contributor

eryajf commented Mar 19, 2023

如下图所示:

image

实际上在COM后边还有内容,但是这里被截断了,代码块儿无法左右滚动,也没有换行显示。

请问下这里是博客评论插件的因素,还是后端artalk的因素呢。

我在官方评论区做了测试,发现较长之后,会自动换行,效果如下:

image

感觉上大概是跟插件有关。

@qwqcode
Copy link
Member

qwqcode commented Mar 19, 2023

能发一下出现问题页面的链接吗

@eryajf
Copy link
Contributor Author

eryajf commented Mar 19, 2023

https://wiki.eryajf.net/pages/fa2478/ 这里的最新评论的最后一条评论

@qwqcode
Copy link
Member

qwqcode commented Mar 19, 2023

你的主题 CSS 覆盖了 Artalk 评论代码区域的一个样式属性,可尝试添加 CSS:

.artalk pre code, .atk-layer-wrap pre code {
  white-space: pre-wrap !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants