From e3c5d734bad8df9e2e58956aac687ce818ac2b2a Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 2 Mar 2026 16:16:09 -0500 Subject: [PATCH] fix(site): move gradient mask below title bar in agent detail (#22515) The gradient mask overlay was positioned at the top of the parent container (`absolute top-0`), causing it to overlap the title bar instead of fading the scroll content beneath it. **Changes:** - Wrap the TopBar, archived banner, and gradient in a `relative z-10 shrink-0 overflow-visible` container - Change the gradient from `top-0` to `top-full` so it anchors to the bottom of the title bar and fades downward over the message area --- site/src/pages/AgentsPage/AgentDetail.tsx | 80 ++++++++++++----------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/site/src/pages/AgentsPage/AgentDetail.tsx b/site/src/pages/AgentsPage/AgentDetail.tsx index 26e605c980..03988447d8 100644 --- a/site/src/pages/AgentsPage/AgentDetail.tsx +++ b/site/src/pages/AgentsPage/AgentDetail.tsx @@ -966,45 +966,47 @@ const AgentDetail: FC = () => { )} >
- navigate(`/agents/${chatId}`)} - diff={{ - hasDiffStatus, - diffStatus: diffStatusQuery.data, - showDiffPanel, - onToggleFilesChanged: () => setShowDiffPanel((prev) => !prev), - }} - workspace={{ - canOpenEditors, - canOpenWorkspace, - onOpenInEditor: (editor) => { - void handleOpenInEditor(editor); - }, - onViewWorkspace: handleViewWorkspace, - }} - onArchiveAgent={handleArchiveAgentAction} - isArchived={isArchived} - isSidebarCollapsed={isSidebarCollapsed} - onToggleSidebarCollapsed={onToggleSidebarCollapsed} - /> - {isArchived && ( -
- - This agent has been archived and is read-only. -
- )} -
+
+ navigate(`/agents/${chatId}`)} + diff={{ + hasDiffStatus, + diffStatus: diffStatusQuery.data, + showDiffPanel, + onToggleFilesChanged: () => setShowDiffPanel((prev) => !prev), + }} + workspace={{ + canOpenEditors, + canOpenWorkspace, + onOpenInEditor: (editor) => { + void handleOpenInEditor(editor); + }, + onViewWorkspace: handleViewWorkspace, + }} + onArchiveAgent={handleArchiveAgentAction} + isArchived={isArchived} + isSidebarCollapsed={isSidebarCollapsed} + onToggleSidebarCollapsed={onToggleSidebarCollapsed} + /> + {isArchived && ( +
+ + This agent has been archived and is read-only. +
+ )} +
+