From aa31f9ded08c6d328d5fc3c54d69214054c203f9 Mon Sep 17 00:00:00 2001 From: Stanislav Alekseev <43210583+WeetHet@users.noreply.github.com> Date: Wed, 14 Aug 2024 17:37:35 +0300 Subject: [PATCH] Fix diagnostic popups not having a max width (#16092) They were probably broken by #14518 Release Notes: - N/A --- crates/editor/src/hover_popover.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/editor/src/hover_popover.rs b/crates/editor/src/hover_popover.rs index 4e01806081..220e875625 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.