-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
如何通过 CSS 控制未钉住的侧栏弹出与收回? #12108
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
Comments
@Vanessa219 有空看看 |
Closed
延时显示最终还是会显示出来,这个体验可能更不好。 |
这个作为讨论话题先关闭了。 |
@Vanessa219 我自己体验好就行了嘛,我自己控制延迟的时间。思源默认立即弹出就好了 |
那应该可以的 |
总结一下,目前的问题就是侧栏弹出与收回不是通过 CSS 实现的,所以用户也就没法通过 CSS 来控制弹出速度快慢 |
可以用延时的 css |
是用哪个? |
|
原来是这个。不过跟我预期有点不同,之前没搞清楚。 有没有办法能实现鼠标保持悬停 500ms 才弹出侧栏呢?(不是鼠标碰到侧栏后再等待 500ms) |
希望可以直接优化一下,现在的弹出收回个人也感觉太快... |
这个需要改 js 了。如果不快的话,用户可能会觉得卡顿。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想通过 CSS 控制未钉住的侧栏弹出与收回:
animation-delay: 200ms;
控制悬停等待的时间animation-duration: 200ms;
控制侧栏弹出与收回的时间但是我感觉这个侧栏弹出与收回好像不是通过 CSS 实现的?
siyuan/app/src/util/globalShortcut.ts
Lines 119 to 131 in 73cb847
siyuan/app/src/layout/dock/index.ts
Lines 415 to 491 in 687421f
关联 https://ld246.com/article/1720580075525
另一个与未钉住侧栏相关的 issue :#11938
The text was updated successfully, but these errors were encountered: