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

行级代码/行内代码自动换行显示样式效果不佳 #8104

Closed
3 tasks done
TinkMingKing opened this issue Apr 25, 2023 · 7 comments
Closed
3 tasks done

行级代码/行内代码自动换行显示样式效果不佳 #8104

TinkMingKing opened this issue Apr 25, 2023 · 7 comments

Comments

@TinkMingKing
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

IMG_20230426_010459
IMG_20230426_010444
自动换行后,上一行会有一点没下来

Expected result

统一到一处

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.8.6
- Operating System: Android and win11
- Browser (if used):

Log file

More information

No response

@Vanessa219
Copy link
Member

如果不换行的话,较长代码块就会撑坏界面,如果个人无较长代码块可在自定义 css 中修改。

由于需要兼容长代码块,这里就不进行统一处理。

@Temacc0531
Copy link

题主的意思应该是换行后不应该还残留一点行内代码的背景在上一行的意思吧😂

@Vanessa219
Copy link
Member

这个是样式的自动换行,不是 \n

@TinkMingKing
Copy link
Contributor Author

这个是样式的自动换行,不是 \n

就是 @Temacc0531 的意思

换行后不应该还残留一点行内代码的背景在上一行

@Vanessa219
Copy link
Member

你截图上并没有真正的换行,是被宽度挤压了换行,如果窗口拖大的话就不会换行了。这种情况需参照上面说的方案进行解决

@TinkMingKing
Copy link
Contributor Author

你截图上并没有真正的换行,是被宽度挤压了换行,如果窗口拖大的话就不会换行了。这种情况需参照上面说的方案进行解决

被挤压换行可以,我想说的问题是,图中几处,上一行已经没有内容了,还有样式残留在上面,注意那并不是空格。所以能否优化一下这样的情况。

正常情况应该是,要么被截断,要么全部挤压下来,内容全部下来了但是样式残留在上面是有问题的,让人觉得显示效果没那么好,当然,如果这是特性的话就当我没说吧。

@Vanessa219
Copy link
Member

这个只能自定义 CSS 来进行解决,由于代码块的光标需在这四个位置可以停留,所以目前还没有办法解决你说的问题
image

@88250 88250 changed the title 行内代码自动换行显示效果不佳 行级代码/行内代码自动换行显示样式效果不佳 Nov 24, 2023
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

No branches or pull requests

3 participants