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

They were probably broken by #14518 

Release Notes:

- N/A
This commit is contained in:
Stanislav Alekseev 2024-08-14 17:37:35 +03:00 committed by GitHub
parent f8a72b5d0a
commit aa31f9ded0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -733,6 +733,8 @@ impl DiagnosticPopover {
.id("diagnostic") .id("diagnostic")
.block() .block()
.max_h(max_size.height) .max_h(max_size.height)
.overflow_y_scroll()
.max_w(max_size.width)
.elevation_2_borderless(cx) .elevation_2_borderless(cx)
// Don't draw the background color if the theme // Don't draw the background color if the theme
// allows transparent surfaces. // allows transparent surfaces.