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

大纲显示效果受到sheet plus插件的影响 #114

Open
qwqw3qee opened this issue Sep 14, 2024 · 0 comments
Open

大纲显示效果受到sheet plus插件的影响 #114

qwqw3qee opened this issue Sep 14, 2024 · 0 comments

Comments

@qwqw3qee
Copy link

启用sheet plus插件后,大纲的toolbar的位置会发生变化。
启用sheet plus插件前:
image
启用sheet plus插件后:
image
原本觉得是sheet plus插件的问题,在该插件项目下提的issue,#38,然后我尝试了下修改css样式,发现将top换成margin-top可以避免heet plus插件的影响,具体css代码如下:

.floating-toc-div .toolbar
{
  display: list-item;
  opacity: 0.8;
  z-index: 2;
  background: var(--floating-toc-background-color);
  position: fixed;
  margin-top: -28px;
  margin-left: 10px;
}

(将原本的top: 75px;改为margin-top: -28px;)
这样不管是否启用sheet plus插件,大纲的显示效果都会保持一致。

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

No branches or pull requests

1 participant