Skip to content

修改面包屑部分样式会导致输入时卡死 #3384

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

Closed
svchord opened this issue Nov 10, 2021 · 2 comments
Closed

修改面包屑部分样式会导致输入时卡死 #3384

svchord opened this issue Nov 10, 2021 · 2 comments
Assignees
Milestone

Comments

@svchord
Copy link

svchord commented Nov 10, 2021

描述问题 Describe the problem

修改面包屑样式时,会导致输入时卡死,只能通过任务管理器结束任务。并且,该问题还分为以下两种情况:

  • 直接将.protyle-breadcrumb的高度写死,就会出现问题,而修改padding时则没有问题,代码如下
.protyle-breadcrumb {
  // padding: 10.5px 8px;  
  height: 45px;
}
  • 修改.protyle-breadcrumb .block__iconmargin属性,也会出现该问题,而如果只使用margin-right或者换成transform则无问题,代码如下:
.protyle-breadcrumb .block__icon {
    // margin-right: 6px;
    // transform: translateX(-6px) translateY(8.5px);
    margin: 8.5px 6px 0 0;
}

期待的结果 Expected result

我已经找到不会出现问题的替代方案,不过还是想问下为什么会出现这个问题…

截屏或者录屏演示 Screenshot or screen recording presentation

卡死

版本环境 Version environment

  • Version: 1.5.0
  • Operating system: Windows 10
  • Browser (if used):

日志文件 Log File

siyuan.log

更多信息 More information

@Vanessa219
Copy link
Member

没有办法重现,但是加强了一下判断,还麻烦下个版本帮忙看看

@Vanessa219 Vanessa219 added this to the 1.5.2 milestone Nov 11, 2021
@svchord
Copy link
Author

svchord commented Nov 15, 2021

没有办法重现,但是加强了一下判断,还麻烦下个版本帮忙看看

1.5.2看了下,已经不会有这个问题了,但是还是不知道是什么原因……

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

No branches or pull requests

2 participants