Fix rendering of diagnostic blocks
- Distinct colors to make it not confusing - Avoid overflowing the edge of the editor when the message is long
This commit is contained in:
parent
db22babe2a
commit
450cf9dd06
4 changed files with 16 additions and 9 deletions
|
@ -84,6 +84,7 @@ pub struct BlockContext<'a, 'b> {
|
|||
pub context: &'b mut ElementContext<'a>,
|
||||
pub view: View<Editor>,
|
||||
pub anchor_x: Pixels,
|
||||
pub max_width: Pixels,
|
||||
pub gutter_width: Pixels,
|
||||
pub gutter_padding: Pixels,
|
||||
pub em_width: Pixels,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue