Fix long git author names/emails overflowing blame tooltip (#10605)

Thorsten Ball and Bennet created

This fixes https://github.com/zed-industries/zed/issues/10581.

Release Notes:

- N/A

Co-authored-by: Bennet <bennetbo@gmx.de>

Change summary

crates/editor/src/element.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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(