feat(webui): add prompt rail navigation

This commit is contained in:
Xubin Ren
2026-06-02 16:18:57 +08:00
parent e8d4aff5be
commit 1af2bc513f
8 changed files with 312 additions and 7 deletions
@@ -10,6 +10,7 @@ import {
import { ArrowDown } from "lucide-react";
import { useTranslation } from "react-i18next";
import { PromptRail } from "@/components/thread/PromptRail";
import { ThreadMessages } from "@/components/thread/ThreadMessages";
import { isAgentActivityMember } from "@/components/thread/AgentActivityCluster";
import { Button } from "@/components/ui/button";
@@ -289,6 +290,14 @@ export function ThreadViewport({
className="pointer-events-none absolute inset-x-0 top-0 h-6 bg-gradient-to-b from-background to-transparent"
/>
{hasMessages ? (
<PromptRail
messages={visibleMessages}
scrollRef={scrollRef}
bottomOffset={scrollButtonBottom}
/>
) : null}
{showScrollToBottomButton && !atBottom && (
<Button
variant="outline"