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
co-authored by Jason
parent 2e27448d5f
commit 104d7adc49
3 changed files with 55 additions and 11 deletions
+1 -1
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()