agent_ui: Fix full-width thread view layout (#56684) (cherry-pick to preview) (#56688)

Cherry-pick of #56684 to preview

----
Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX

checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #56677

Release Notes:

- Agent: Fix squashed message editor when `limit_content_width=false`

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
This commit is contained in:
zed-zippy[bot] 2026-05-13 21:46:00 +00:00 committed by GitHub
parent b476ac314e
commit fac7b9245f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3300,6 +3300,7 @@ 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()