From 078e7fc372eef632026754b642e26561f7b225b8 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Fri, 9 Jan 2026 08:44:08 +0000 Subject: [PATCH] Done! I've changed `block: 'nearest'` to `block: 'start'` in `ChangesPanelContainer.tsx:168`. (#1869) **What this fixes:** - `block: 'nearest'` only scrolled the minimum distance to make the element visible, which often left users "halfway" through a file - `block: 'start'` aligns the top of the selected diff with the top of the scroll container, ensuring the file header is always visible at the top --- .../src/components/ui-new/containers/ChangesPanelContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/ui-new/containers/ChangesPanelContainer.tsx b/frontend/src/components/ui-new/containers/ChangesPanelContainer.tsx index 2766322b..3afa100f 100644 --- a/frontend/src/components/ui-new/containers/ChangesPanelContainer.tsx +++ b/frontend/src/components/ui-new/containers/ChangesPanelContainer.tsx @@ -165,7 +165,7 @@ export function ChangesPanelContainer({ const timeoutId = setTimeout(() => { diffRefs.current.get(selectedFilePath)?.scrollIntoView({ behavior: 'smooth', - block: 'nearest', + block: 'start', }); }, 0);