Skip to content

Commit

Permalink
keep Log scrolling only to nearest div (#24689)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi committed Jun 27, 2022
1 parent 2fb93f8 commit 48ceda2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Logs = ({

useEffect(() => {
if (codeBlockBottomDiv.current) {
codeBlockBottomDiv.current.scrollIntoView();
codeBlockBottomDiv.current.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}, [wrap, data]);

Expand Down

0 comments on commit 48ceda2

Please sign in to comment.