mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
agent_panel: Hide thread title edit button outside thread view (#56833) (cherry-pick to preview) (#57013)
Cherry-pick of #56833 to preview ---- Hide the edit thread title button unless the visible agent panel surface is a thread. Release Notes: - N/A Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
This commit is contained in:
parent
eb9ab361d6
commit
48590427d3
1 changed files with 3 additions and 1 deletions
|
|
@ -4096,7 +4096,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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue