Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Fix inline assistant line height (#47772)
Danilo Leal4ffe748461cb
diff --git a/crates/agent_ui/src/inline_prompt_editor.rs b/crates/agent_ui/src/inline_prompt_editor.rsindex 3c6b99f3466..48c597f0431 100644--- a/crates/agent_ui/src/inline_prompt_editor.rs+++ b/crates/agent_ui/src/inline_prompt_editor.rs@@ -1118,14 +1118,13 @@ impl<T: 'static> PromptEditor<T> {.child({let settings = ThemeSettings::get_global(cx);let font_size = settings.buffer_font_size(cx);- let line_height = font_size * 1.2;let text_style = TextStyle {color: colors.editor_foreground,font_family: settings.buffer_font.family.clone(),font_features: settings.buffer_font.features.clone(),font_size: font_size.into(),- line_height: line_height.into(),+ line_height: relative(settings.buffer_line_height.value()),..Default::default()};