Skip to content

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

Open

Description

@leonedit

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

Activity

  1. starlying commented on Jul 1, 2018

    @starlying
    Contributor

    已修复,感谢!

  2. bizks commented on Jul 1, 2018

    @bizks

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

  3. starlying commented on Jul 1, 2018

    @starlying
    Contributor

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

  4. leonedit commented on Jul 1, 2018

    @leonedit
    Author

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

  5. leonedit commented on Jul 1, 2018

    @leonedit
    Author

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

  6. starlying commented on Jul 2, 2018

    @starlying
    Contributor

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

  7. starlying commented on Jul 2, 2018

    @starlying
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions