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.

Fix diagnostic popups not having a max width (#16092)

Stanislav Alekseevaa31f9ded08c
diff --git a/crates/editor/src/hover_popover.rs b/crates/editor/src/hover_popover.rs
index 4e018060817..220e8756255 100644
--- a/crates/editor/src/hover_popover.rs
+++ b/crates/editor/src/hover_popover.rs
@@ -733,6 +733,8 @@ impl DiagnosticPopover {
.id("diagnostic")
.block()
.max_h(max_size.height)
+ .overflow_y_scroll()
+ .max_w(max_size.width)
.elevation_2_borderless(cx)
// Don't draw the background color if the theme
// allows transparent surfaces.