Don't insert unnecessary space below the end of an inline transformation (#15865)

We achieved this by allowing block decorations to have a height of `0`
and superimposing the border on top of the line, as opposed to carving
out space below it.

Release Notes:

- N/A

---------

Co-authored-by: Jason <jason@zed.dev>
This commit is contained in:
Antonio Scandurra 2024-08-06 19:00:23 +02:00 committed by GitHub
parent 2e27448d5f
commit 104d7adc49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 55 additions and 11 deletions

View file

@ -334,7 +334,7 @@ impl InlineAssistant {
BlockProperties {
style: BlockStyle::Sticky,
position: range.end,
height: 1,
height: 0,
render: Box::new(|cx| {
v_flex()
.h_full()