mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-23 21:05:08 +00: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:
parent
e1b06d1baf
commit
3115298f98
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue