侧边栏文件页
cfikt opened this issue · comments
在侧边栏点击文件时,自动跳转到顶部
第一个gif文件为 see yue 主题,当点击一个文件时,会自动跳转到文件侧边栏的顶部
第二个gif文件是其它主题,当点击一个文件时,文件侧边栏是固定的(除了 see yue 的其它主题都是如此)
测试了下,v1.3.3 版本没有这个问题。我问了用这个主题的朋友,他也没有遇到。我觉得可能是你自己改的代码造成的。可以在 sidebar.css
里注释掉所有的 transition 属性,或许可以解决这个问题。
为了验证是否由我修改代码导致该问题,我把seeyue.css以及seeyue文件夹删了,并且在github重新下载,该问题依然存在
难道是 Typora 版本问题?我的版本是 1.4.8。以前也有老哥遇到过 bug,怎么排查都找不到,最后升级 Typora 版本就好了。
我也不知道该问题出现在哪,因为我的typora版本也是最新版1.4.8
好吧,有点奇怪。
/* 给文件层级线提供定位 */
.file-node-expanded>.file-node-children:not(:only-child) {
position : relative;
margin-left: 10px;
display : block;
}
试试把 .file-node-expanded>.file-node-children:not(:only-child)
改为 :not(.file-node-root).file-node-expanded[data-is-directory="true"]>.file-node-children:not(:only-child)
看看,能不能解决这个问题 。
下个版本 v1.4,代码进行了重构,或许可以解决这个问题。
.file-node-expanded>.file-node-children:not(:only-child) 改为 :not(.file-node-root).file-node-expanded[data-is-directory="true"]>.file-node-children:not(:only-child) 这不能解决该问题
.file-node-expanded>.file-node-children:not(:only-child) 改为 :not(.file-node-root).file-node-expanded[data-is-directory="true"]>.file-node-children:not(:only-child) 这不能解决该问题
好吧,v1.4 版本发布了,你尝试下吧。目前实在是定位不到问题所在。😑
See Yue v1.4 已发布,请及时更新。