Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix position of right dock handle

Max Brunsfelde6f3731efd69
diff --git a/crates/workspace2/src/dock.rs b/crates/workspace2/src/dock.rs
index e44471a871a..3997b8f9b01 100644
--- a/crates/workspace2/src/dock.rs
+++ b/crates/workspace2/src/dock.rs
@@ -490,6 +490,7 @@ impl Render for Dock {
let mut handle = div()
.id("resize-handle")
.on_drag(DraggedDock(position), |dock, cx| {
+ cx.stop_propagation();
cx.build_view(|_| dock.clone())
})
.on_click(cx.listener(|v, e: &ClickEvent, cx| {
@@ -525,8 +526,8 @@ impl Render for Dock {
.absolute()
.top(px(0.))
.left(px(0.))
- .w_full()
- .h(HANDLE_SIZE)
+ .h_full()
+ .w(HANDLE_SIZE)
.cursor_col_resize();
}
}