From 8c9a5259a77582cb6d9a6f684b011404b8333ccb Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Fri, 5 Jun 2026 21:14:17 +0800 Subject: [PATCH] style(webui): refine prompt navigator placement --- .../src/components/thread/PromptNavigator.tsx | 27 +++++++++---------- .../src/components/thread/ThreadViewport.tsx | 1 - webui/src/i18n/locales/en/common.json | 1 - webui/src/i18n/locales/es/common.json | 1 - webui/src/i18n/locales/fr/common.json | 1 - webui/src/i18n/locales/id/common.json | 1 - webui/src/i18n/locales/ja/common.json | 1 - webui/src/i18n/locales/ko/common.json | 1 - webui/src/i18n/locales/vi/common.json | 1 - webui/src/i18n/locales/zh-CN/common.json | 1 - webui/src/i18n/locales/zh-TW/common.json | 1 - 11 files changed, 13 insertions(+), 24 deletions(-) diff --git a/webui/src/components/thread/PromptNavigator.tsx b/webui/src/components/thread/PromptNavigator.tsx index 692524d9d..2e618bd18 100644 --- a/webui/src/components/thread/PromptNavigator.tsx +++ b/webui/src/components/thread/PromptNavigator.tsx @@ -6,7 +6,6 @@ import { Button } from "@/components/ui/button"; import { Sheet, SheetContent, - SheetDescription, SheetTitle, } from "@/components/ui/sheet"; import { @@ -18,13 +17,11 @@ import type { UIMessage } from "@/lib/types"; import { cn } from "@/lib/utils"; interface PromptNavigatorProps { - bottomOffset: number; messages: UIMessage[]; onJumpToPrompt: (promptId: string) => void; } export function PromptNavigator({ - bottomOffset, messages, onJumpToPrompt, }: PromptNavigatorProps) { @@ -51,16 +48,15 @@ export function PromptNavigator({ return ( <>