From 2d05537b59bc2027b70e488fbdc7df6c78ffd614 Mon Sep 17 00:00:00 2001 From: Agus Zubiaga Date: Tue, 1 Apr 2025 18:16:53 -0300 Subject: [PATCH] assistant2: Fix notification max width (#27872) Release Notes: - N/A --- crates/assistant2/src/ui/agent_notification.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/assistant2/src/ui/agent_notification.rs b/crates/assistant2/src/ui/agent_notification.rs index a0529b25b0b26e783886434ea61d8ab42f93116a..4292f9e061c6ac0fcc180c0e7b2a0462f0291c5a 100644 --- a/crates/assistant2/src/ui/agent_notification.rs +++ b/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()),