panel: Only highlight resize handle when dragging. (#629)

This commit is contained in:
Jason Lee 2025-02-14 18:42:56 +08:00 committed by GitHub
parent 851099f890
commit b18dd47ce0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,7 +150,7 @@ impl<T: 'static, E: 'static + Render> Element for ResizeHandle<T, E> {
.child(
div()
.bg(bg_color)
.group_hover("handle", |this| this.bg(cx.theme().drag_border))
.group_hover("handle", |this| this.bg(bg_color))
.when(axis.is_horizontal(), |this| this.h_full().w(HANDLE_SIZE))
.when(axis.is_vertical(), |this| this.w_full().h(HANDLE_SIZE)),
)