jinghu-moon / typora-see-yue-theme

See Yue 系列主题是一个自定义样式极多、简约、充满细节的 Typora 主题。(The See Yue series theme is a Typora theme with a plethora of custom styles, minimalism, and full of details.)

Home Page:https://theme.typora.io/theme/see-yue/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

代码块纵向滚动显示问题

luceln opened this issue · comments

commented
  1. 代码块在19行出现滚动条时,第19行代码只显示出部分。
  2. 手动划到最底部后,再次编辑第19行代码,位置会跳回到刚才的位置(即显示部分文字)。
    image

代码块横向滚动有问题,目前没有找到比较好的解决方法。在考虑下个版本是否去掉该功能。🙃

昨晚没仔细看问题。但应该与代码块横向滚动条有关,xxxx-configs.css 注释下面代码,应该可以解决。

  --code-block-lines-horizontal-white-space: normal;
  --code-block-lines-horizontal-overflow-x : auto;
commented

注释了没有效果,而且我发现鼠标单击最后一行也会出现这种情况

SeeYue/code-block/ 路径下 code-block.css 注释下面代码,应该可以吧?

  /* 代码块行横向滚轮 */
  #write pre.md-fences .CodeMirror-wrap .CodeMirror-code pre {
    overflow-x : var(--code-block-lines-horizontal-overflow-x) !important;
    white-space: var(--code-block-lines-horizontal-white-space) !important;
  }
commented

这块代码也已经注释了,没有效果

commented

点击代码块前三行,代码会向上跳显示前面的代码。点击代码块倒数三行会向下跳显示下面的代码。向上的显示没问题,向下跳动的最后一行总是只显示一部分。
image

我复现出这个问题了。估计是点击最后面几行被电脑认为是拖动滚轮了,就出现了这样的效果。目前不知道怎么解决。🙃