assistant2: Fix notification max width (#27872)

Agus Zubiaga created

<img width=400
src="https://github.com/user-attachments/assets/4132e075-3f2a-4c65-8c06-c3428f3ad477">

<img width=400
src="https://github.com/user-attachments/assets/95908b32-a9b9-45c3-9db9-dcbeedffc5e7">

Release Notes:

- N/A

Change summary

crates/assistant2/src/ui/agent_notification.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

crates/assistant2/src/ui/agent_notification.rs 🔗

@@ -118,12 +118,13 @@ impl Render for AgentNotification {
                     )
                     .child(
                         v_flex()
+                            .flex_1()
+                            .max_w(px(300.))
                             .child(
                                 div()
                                     .relative()
                                     .text_size(px(14.))
                                     .text_color(cx.theme().colors().text)
-                                    .max_w(px(300.))
                                     .truncate()
                                     .child(self.title.clone())
                                     .child(gradient_overflow()),
@@ -133,7 +134,6 @@ impl Render for AgentNotification {
                                     .relative()
                                     .text_size(px(12.))
                                     .text_color(cx.theme().colors().text_muted)
-                                    .max_w(px(340.))
                                     .truncate()
                                     .child(self.caption.clone())
                                     .child(gradient_overflow()),