fix(webui): stop mention popup section headers from sticking and overlapping

Both Agents and Members header buttons had 'sticky top-0', so while
scrolling the 256px mention list the Agents header stayed pinned and the
Members header snapped to the same top position, covering it exactly.
Remove 'sticky top-0' so headers scroll away naturally with their
sections.
This commit is contained in:
yiling
2026-08-03 14:47:43 +08:00
parent 83d22d47a2
commit d696c39622
@@ -552,7 +552,7 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
e.stopPropagation()
setCollapsedSections((prev) => ({ ...prev, bots: !prev.bots }))
}}
className="w-full text-xs font-semibold text-muted-foreground px-3 py-2 bg-muted/50 border-b border-border sticky top-0 flex items-center justify-between hover:bg-muted transition-colors"
className="w-full text-xs font-semibold text-muted-foreground px-3 py-2 bg-muted/50 border-b border-border flex items-center justify-between hover:bg-muted transition-colors"
>
<span>Agents</span>
<ChevronDown
@@ -601,7 +601,7 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
e.stopPropagation()
setCollapsedSections((prev) => ({ ...prev, users: !prev.users }))
}}
className="w-full text-xs font-semibold text-muted-foreground px-3 py-2 bg-muted/50 border-b border-border sticky top-0 flex items-center justify-between hover:bg-muted transition-colors"
className="w-full text-xs font-semibold text-muted-foreground px-3 py-2 bg-muted/50 border-b border-border flex items-center justify-between hover:bg-muted transition-colors"
>
<span>Members</span>
<ChevronDown