mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-21 08:01:33 +01:00
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
This commit is contained in:
@@ -4088,7 +4088,9 @@ impl AgentPanel {
|
||||
.overflow_x_hidden()
|
||||
.child(content)
|
||||
.when(
|
||||
self.has_open_project(cx) && !self.is_title_editor_focused(window, cx),
|
||||
matches!(self.visible_surface(), VisibleSurface::AgentThread(_))
|
||||
&& self.has_open_project(cx)
|
||||
&& !self.is_title_editor_focused(window, cx),
|
||||
|this| {
|
||||
this.child(gradient_overlay).child(
|
||||
h_flex()
|
||||
|
||||
Reference in New Issue
Block a user