Hide the edit thread title button unless the visible agent panel surface is a thread. Release Notes: - N/A
Unified · Split
| @@ -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() |