Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix notebook cell-height when soft-wrapping lines (#19933)
Lukas Geiger83e2889d63b5
diff --git a/crates/repl/src/notebook/cell.rs b/crates/repl/src/notebook/cell.rsindex bb6b6fbf386..f86f969a963 100644--- a/crates/repl/src/notebook/cell.rs+++ b/crates/repl/src/notebook/cell.rs@@ -553,9 +553,6 @@ impl RunnableCell for CodeCell {impl Render for CodeCell {fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {- let lines = self.source.lines().count();- let height = lines as f32 * cx.line_height();-v_flex().size_full()// TODO: Move base cell render into trait impl so we don't have to repeat this@@ -582,7 +579,7 @@ impl Render for CodeCell {.border_1().border_color(cx.theme().colors().border).bg(cx.theme().colors().editor_background)- .child(div().h(height).w_full().child(self.editor.clone())),+ .child(div().w_full().child(self.editor.clone())),),),)