Task attempt 7f50b862-042d-4d26-944c-0b2e318a21f4 - Final changes
This commit is contained in:
@@ -235,12 +235,12 @@ export function TaskDetailsPanel({
|
|||||||
}
|
}
|
||||||
}, [task, isOpen]);
|
}, [task, isOpen]);
|
||||||
|
|
||||||
// Auto-scroll to bottom when activities change
|
// Auto-scroll to bottom when activities or execution processes change
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (shouldAutoScroll && scrollContainerRef.current) {
|
if (shouldAutoScroll && scrollContainerRef.current) {
|
||||||
scrollContainerRef.current.scrollTop = scrollContainerRef.current.scrollHeight;
|
scrollContainerRef.current.scrollTop = scrollContainerRef.current.scrollHeight;
|
||||||
}
|
}
|
||||||
}, [attemptActivities, shouldAutoScroll]);
|
}, [attemptActivities, executionProcesses, shouldAutoScroll]);
|
||||||
|
|
||||||
// Handle scroll events to detect manual scrolling
|
// Handle scroll events to detect manual scrolling
|
||||||
const handleScroll = useCallback(() => {
|
const handleScroll = useCallback(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user