Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Auto-scroll hover popup while selecting text (#57518)
Daniel Martín6049ceaecf39
diff --git a/crates/editor/src/hover_popover.rs b/crates/editor/src/hover_popover.rsindex 5f256f2197b..5c5eb651e35 100644--- a/crates/editor/src/hover_popover.rs+++ b/crates/editor/src/hover_popover.rs@@ -1088,6 +1088,7 @@ impl InfoPopover {.track_scroll(&self.scroll_handle).child(MarkdownElement::new(markdown, hover_markdown_style(window, cx))+ .scroll_handle(self.scroll_handle.clone()).code_block_renderer(markdown::CodeBlockRenderer::Default {copy_button_visibility: CopyButtonVisibility::Hidden,wrap_button_visibility: markdown::WrapButtonVisibility::Hidden,diff --git a/crates/git_ui/src/blame_ui.rs b/crates/git_ui/src/blame_ui.rsindex 47d781c4870..34bf205b57a 100644--- a/crates/git_ui/src/blame_ui.rs+++ b/crates/git_ui/src/blame_ui.rs@@ -238,7 +238,11 @@ impl BlameRenderer for GitBlameRenderer {let message = details.as_ref()- .map(|_| MarkdownElement::new(markdown.clone(), markdown_style).into_any())+ .map(|_| {+ MarkdownElement::new(markdown.clone(), markdown_style)+ .scroll_handle(scroll_handle.clone())+ .into_any()+ }).unwrap_or("<no commit message>".into_any());let pull_request = detailsdiff --git a/crates/git_ui/src/commit_tooltip.rs b/crates/git_ui/src/commit_tooltip.rsindex a355d7355b9..13ac1c759cf 100644--- a/crates/git_ui/src/commit_tooltip.rs+++ b/crates/git_ui/src/commit_tooltip.rs@@ -258,7 +258,11 @@ impl Render for CommitTooltip {.commit.message.as_ref()- .map(|_| MarkdownElement::new(self.markdown.clone(), markdown_style).into_any())+ .map(|_| {+ MarkdownElement::new(self.markdown.clone(), markdown_style)+ .scroll_handle(self.scroll_handle.clone())+ .into_any()+ }).unwrap_or("<no commit message>".into_any());let pull_request = self