Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Clip flex editor blocks to the text viewport (#56549)
liamaa9f4ede6c72
diff --git a/crates/editor/src/code_lens.rs b/crates/editor/src/code_lens.rsindex 73a8bb10063..b47bc88b4a8 100644--- a/crates/editor/src/code_lens.rs+++ b/crates/editor/src/code_lens.rs@@ -340,7 +340,7 @@ impl Editor {let props = BlockProperties {placement: BlockPlacement::Above(anchor),height: Some(1),- style: BlockStyle::Flex,+ style: BlockStyle::Spacer,render: build_code_lens_renderer(new_line.clone(), editor_handle.clone()),priority: 0,};@@ -644,7 +644,7 @@ fn build_code_lens_renderer(line: CodeLensLine, editor: WeakEntity<Editor>) -> Rdiv().id(cx.block_id)- .pl(cx.margins.gutter.full_width() + cx.em_width * (line.indent_column as f32 + 0.5))+ .pl(cx.em_width * (line.indent_column as f32 + 0.5)).h_full().flex().flex_row()