Clip completion labels when they would otherwise overflow their container

Co-Authored-By: Julia <julia@zed.dev>
This commit is contained in:
Marshall Bowers
2024-01-03 11:41:15 -05:00
co-authored by Julia
parent f4f9aab8a9
commit 231fd1c5c0
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1266,7 +1266,7 @@ impl CompletionsMenu {
)
.map(|task| task.detach_and_log_err(cx));
}))
.child(completion_label)
.child(h_stack().overflow_hidden().child(completion_label))
.end_slot::<Div>(documentation_label),
)
})