History

agent_panel: Hide thread title edit button outside thread view (#56833)

Hide the edit thread title button unless the visible agent panel surface is a thread. Release Notes: - N/A

Anthony Eid committed 6 months ago

Commit 31152981 parent e1b06d11 file · +3 −1Browse files

Unified · Split

crates/agent_ui/src/agent_panel.rs+3−1
@@ -4088,7 +4088,9 @@ impl AgentPanel { · 4087 unmodified lines
4088 .overflow_x_hidden()4088 .overflow_x_hidden()
4089 .child(content)4089 .child(content)
4090 .when(4090 .when(
4091 self.has_open_project(cx) && !self.is_title_editor_focused(window, cx),4091 matches!(self.visible_surface(), VisibleSurface::AgentThread(_))
4092 && self.has_open_project(cx)
4093 && !self.is_title_editor_focused(window, cx),
4092 |this| {4094 |this| {
4093 this.child(gradient_overlay).child(4095 this.child(gradient_overlay).child(
4094 h_flex()4096 h_flex()