Skip to content

Commit 1dbc501

Browse files
committed
fix: adjust scroll position to account for header height in Observation component
1 parent a9bd10e commit 1dbc501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/Video/components/Observation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const Observation = ({
106106
);
107107
if (activeElement) {
108108
refScroll.current.scrollTo({
109-
top: activeElement.offsetTop,
109+
top: activeElement.offsetTop - 150, // account for header height
110110
behavior: 'smooth',
111111
});
112112
}

0 commit comments

Comments
 (0)