Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent_ui: Fix placeholder wrapping in the message editor (#55125)

Danilo Leal3014170d7e4d
diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs
index accc82a2ff7..ed42c576a36 100644
--- a/crates/agent_ui/src/conversation_view/thread_view.rs
+++ b/crates/agent_ui/src/conversation_view/thread_view.rs
@@ -3211,10 +3211,9 @@ impl ThreadView {
.child(
v_flex()
.when_some(max_content_width, |this, max_w| this.flex_basis(max_w))
- .when(max_content_width.is_none(), |this| this.w_full())
+ .when(fills_container, |this| this.h_full())
.flex_shrink()
.flex_grow_0()
- .when(fills_container, |this| this.h_full())
.justify_between()
.gap_2()
.child(
@@ -3275,6 +3274,7 @@ impl ThreadView {
)
.child(
h_flex()
+ .flex_wrap()
.gap_1()
.children(self.render_token_usage(cx))
.children(self.profile_selector.clone())