Improve drag performance and hover states in doc tree (#15102)

* 🎨 Improve drag performance and hover states in doc tree

Improve https://github.com/siyuan-note/siyuan/issues/13864

* 🎨 Improve drag performance and hover states in doc tree

Improve https://github.com/siyuan-note/siyuan/issues/13864
This commit is contained in:
Jeffrey Chen 2025-07-13 16:14:50 +08:00 committed by GitHub
parent 855d6cc2db
commit 10a4742ebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 3 deletions

View file

@ -9,11 +9,20 @@
&--background .b3-list-item {
border-radius: var(--b3-border-radius);
&:hover:not(.b3-list-item--focus):not(.dragover):not(.dragover__current):not(.dragover__top):not(.dragover__bottom),
&:hover,
&--focus {
background-color: var(--b3-list-hover);
}
&.dragover,
&.dragover__top,
&.dragover__bottom,
&.dragover__current {
&:hover {
background-color: var(--b3-list-hover);
}
}
&.dragover,
&.dragover__top,
&.dragover__bottom {

View file

@ -284,6 +284,22 @@ html {
overflow: hidden;
transition: var(--b3-transition);
}
&--dragover {
.b3-list--background .b3-list-item:not(.b3-list-item--focus) {
background-color: transparent;
}
.b3-list-item {
&--hide-action .b3-list-item__action {
display: none;
}
> * {
pointer-events: none;
}
}
}
}
.counter {