-
Notifications
You must be signed in to change notification settings - Fork 5
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
Enhance Toggle Block UI #109
Comments
Thank you for your feedback. SiYuan doesn't actually have a dedicated toggle block feature. Instead, any block can be folded within the regular content flow. I can add smooth animations to the icons next to these blocks though. Regarding the left border lines, you can achieve this effect by nesting heading blocks within a list block: CleanShot.2024-10-31.at.11.16.26.mp4 |
It's a bit tricky in SiYuan to use the toggle feature with a left border line. Let me submit an improvement issue to SiYuan to see if they are willing to improve this by adding a dedicated toggle block feature. In AnyType, Capacities, and Notion, they all have dedicated toggles, which are convenient to use for a better user experience. |
I think it's because they've integrated toggle functionality into container blocks (such as headings and lists) and folding/unfolding functionality into all other blocks in SiYuan, eliminating the need for a separate toggle block type. |
…y (finalizing #109) - Add commented-out styles for background color padding on various elements - Increase animation delay for protyle-gutters
This is from Obsidian. I think that the unfolding feature with the three dots is much better, in my opinion. You can see that once we fold the list, an arrow becomes visible, which is super handy for easily identifying folded sections while scrolling the document, just a suggestion. Video: Recording.2024-11-03.045928.mp4What I'm suggesting is that, if possible, once a list is folded, an arrow becomes visible like in Obsidian. Additionally, it would be helpful to have the three dots appear once the list is folded. Video: Recording.2024-11-03.050714.mp4 |
SiYuan already handles folded/expanded block states with distinct styling, though it could be more intuitive. The folded list state, for example, is indicated by a shadow around the dot. While I think additional visual indicators aren't always necessary, they can be implemented using pseudo-elements if desired. |
我块标用的是这个css,感觉比现在的一闪一闪出现好,有没办法给个方法让我把主题里现在新更新的块标缩放出现的动画去除,我想用回我这个样式 /** 块标平滑移动 **/
/* 平滑移动 */
.protyle-gutters {
transition: all 0.15s ease-out; /* 数值越大,速度越慢 */
} |
.protyle-gutters>button {
animation: none !important;
opacity: 1 !important;
} |
同支持加三个点,感觉会明显很多 |
I recently explored Capacities and noticed the toggle block. In my opinion, it looks better, with a modern arrow, a smooth toggle animation, and a left border line indicating the toggle block. If you could improve this, I'd really appreciate it.
Recording.2024-10-31.055007.mp4
The text was updated successfully, but these errors were encountered: