fix(chat): soften message-list scroll fade (32px → 16px)

The 32px edge fade washed out full-bleed content (HTML / image previews)
at the list edges. Halve the fade distance so it barely grazes previews
while still hinting at more content above/below.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing
2026-07-10 15:43:06 +08:00
parent 31b985bbfd
commit a56ddc60ff

View File

@@ -130,7 +130,9 @@ export function ChatMessageList({
scrollRef.current = node;
setScrollContainerEl(node);
}, []);
const fadeStyle = useScrollFade(scrollRef);
// Soft edge fade hinting more content above/below. Kept small so it barely
// grazes full-bleed previews (image / HTML) at the edges.
const fadeStyle = useScrollFade(scrollRef, 16);
const pendingTaskId = pendingTask?.task_id ?? null;