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.

Add missing full-size styles for panes (#19935)

Nate Butler63524a2354a8
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 01a1f0271e2..97672fd2455 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -2696,6 +2696,7 @@ impl Render for Pane {
.flex_1()
.relative()
.group("")
+ .overflow_hidden()
.on_drag_move::<DraggedTab>(cx.listener(Self::handle_drag_move))
.on_drag_move::<DraggedSelection>(cx.listener(Self::handle_drag_move))
.when(is_local, |div| {
@@ -2704,6 +2705,8 @@ impl Render for Pane {
.map(|div| {
if let Some(item) = self.active_item() {
div.v_flex()
+ .size_full()
+ .overflow_hidden()
.child(self.toolbar.clone())
.child(item.to_any())
} else {