Fix rendering of diagnostic blocks (#4232)

- Distinct colors to make it not confusing
- Avoid overflowing the edge of the editor when the message is long


Release Notes:

- Improved display of diagnostic blocks (F8)
This commit is contained in:
Conrad Irwin 2024-01-23 16:39:57 -07:00 committed by GitHub
commit a3968c5cc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 9 deletions

View file

@ -1603,6 +1603,7 @@ mod tests {
gutter_width: px(0.),
line_height: px(0.),
em_width: px(0.),
max_width: px(0.),
block_id: ix,
view: editor_view,
editor_style: &editor::EditorStyle::default(),