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

提供一个官方长期忽视的小Bug修复 #940

Open
leonedit opened this issue Jun 27, 2018 · 7 comments
Open

提供一个官方长期忽视的小Bug修复 #940

leonedit opened this issue Jun 27, 2018 · 7 comments
Labels
BUG

Comments

@leonedit
Copy link

@leonedit leonedit commented Jun 27, 2018

各位在后台修改代码的时候,有没有因为行号和代码对不齐而抓狂呢?其实很简单,修改“siteserver\assets\codeMirror\css\jscolors.css”样式文件内容,把第一个样式“.editbox“的“margin:0 .4em”中间那个空格删除,或者手动添加一条“margin-top:.4rem”就可以和左侧的行号对齐了。
也希望官方能在下一个版本顺手修复,治疗一下强迫症患者……

@starlying starlying added the BUG label Jul 1, 2018
@starlying

This comment has been minimized.

Copy link
Contributor

@starlying starlying commented Jul 1, 2018

已修复,感谢!

@starlying starlying mentioned this issue Jul 1, 2018
37 of 37 tasks complete
@bizks

This comment has been minimized.

Copy link

@bizks bizks commented Jul 1, 2018

自行换行能不能就省略行号了,不然行号老是对不上

@starlying

This comment has been minimized.

Copy link
Contributor

@starlying starlying commented Jul 1, 2018

自动换行还需要研究一下,没发现那里能够配置

@leonedit

This comment has been minimized.

Copy link
Author

@leonedit leonedit commented Jul 1, 2018

很好,既然官方能注意到这个小问题,说明很重视用户感受。那么顺便,能不能把行号栏的"CodeMirror-line-numbers"样式里“width:22px”这个属性去掉,因为继承属性的宽度貌似是自动的,这样大于100行的时候行号就不会显示不全了。

@leonedit

This comment has been minimized.

Copy link
Author

@leonedit leonedit commented Jul 1, 2018

另外,自动换行的溢出内容用省略号代替可以用CSS来做,不过这样不便于读码,是够可以考虑给每行的高度设置auto,结合具体样式让换行后的行号置于多行的顶部,余下留空,直到下一行继续编号。

@starlying starlying mentioned this issue Jul 2, 2018
43 of 85 tasks complete
@starlying

This comment has been minimized.

Copy link
Contributor

@starlying starlying commented Jul 2, 2018

行号栏的"CodeMirror-line-numbers"样式里“width:22px”这个属性去掉,这个已解决,感谢。

@starlying

This comment has been minimized.

Copy link
Contributor

@starlying starlying commented Jul 2, 2018

自行换行省略行号貌似设置行高为auto不行,还得研究研究怎么实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.