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:
1 parent
e1b06d1baf
commit
3115298f98
1 file changed
+3
-1
@@ -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