From 4d8cba2addd07429d7d86dccc220c5f99982f112 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Tue, 16 Apr 2024 12:03:45 +0200 Subject: [PATCH] Fix long git author names/emails overflowing blame tooltip (#10605) This fixes https://github.com/zed-industries/zed/issues/10581. Release Notes: - N/A Co-authored-by: Bennet --- crates/editor/src/element.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index f7594ec4a6739591332ff8a6a91e54a6649353ef..f327787263d848238a4c6a3f4a295949b6682b7d 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -3101,7 +3101,9 @@ impl Render for BlameEntryTooltip { .gap_4() .child( h_flex() - .gap_2() + .gap_x_2() + .overflow_x_hidden() + .flex_wrap() .child(author) .when_some(author_email, |this, author_email| { this.child(