fix(webui): prevent composer resize scroll jitter (#5121)

This commit is contained in:
chengyongru
2026-07-28 01:01:49 +08:00
committed by GitHub
parent b99e0f937e
commit 6bc454dab4
4 changed files with 172 additions and 2 deletions
@@ -664,6 +664,11 @@ export const ThreadViewport = forwardRef<ThreadViewportHandle, ThreadViewportPro
<div
ref={composerDockRef}
data-testid="thread-composer-dock"
onInputCapture={(event) => {
if (event.target instanceof HTMLTextAreaElement) {
threadMotionRef.current?.handleComposerInput();
}
}}
className={cn(
"row-start-2 z-10 w-full",
hasMessages ? "sticky bottom-0 bg-background" : "relative self-center",