fix(webui): center prompt navigation in the complete chat frame
This commit is contained in:
1 parent
f230409b5a
commit
27ef6fe24f
7 files changed
+84
-15
No files matched your search
@@ -44,6 +44,7 @@ interface ThreadViewportProps {
|
||||
runStartedAt?: number | null;
|
||||
retryStatus?: RetryStatus | null;
|
||||
composer?: ReactNode;
|
||||
navigationFrame?: HTMLElement | null;
|
||||
emptyState?: ReactNode;
|
||||
scrollToBottomSignal?: number;
|
||||
activeTurnId?: string | null;
|
||||
@@ -241,6 +242,7 @@ export const ThreadViewport = forwardRef<ThreadViewportHandle, ThreadViewportPro
|
||||
runStartedAt = null,
|
||||
retryStatus = null,
|
||||
composer,
|
||||
navigationFrame,
|
||||
emptyState,
|
||||
scrollToBottomSignal = 0,
|
||||
activeTurnId: liveTurnId = null,
|
||||
@@ -1130,7 +1132,7 @@ export const ThreadViewport = forwardRef<ThreadViewportHandle, ThreadViewportPro
|
||||
messages={messages}
|
||||
prompts={navigation?.prompts}
|
||||
scrollRef={scrollRef}
|
||||
bottomOffset={scrollButtonBottom}
|
||||
navigationFrame={navigationFrame}
|
||||
onJumpToPrompt={jumpToUserPrompt}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
Reference in new issue
Block a user