summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src
diff options
context:
space:
mode:
authoradamelmore <[email protected]>2026-01-25 07:58:24 -0600
committeradamelmore <[email protected]>2026-01-25 10:30:10 -0600
commit2b07291e17856a2b014537542f79cc8c059487c9 (patch)
tree8fdcc4be0692245c634dc0c8f61ef8bc4a8fa169 /packages/ui/src
parentd25120680dea60b4231f12b266dc733089f3e181 (diff)
downloadopencode-2b07291e17856a2b014537542f79cc8c059487c9.tar.gz
opencode-2b07291e17856a2b014537542f79cc8c059487c9.zip
fix(app): scroll to comment on click
Diffstat (limited to 'packages/ui/src')
-rw-r--r--packages/ui/src/components/session-review.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/ui/src/components/session-review.tsx b/packages/ui/src/components/session-review.tsx
index 42c0bc2aa..60ac0d516 100644
--- a/packages/ui/src/components/session-review.tsx
+++ b/packages/ui/src/components/session-review.tsx
@@ -238,7 +238,7 @@ export const SessionReview = (props: SessionReviewProps) => {
const target = ready ? anchor : anchors.get(focus.file)
if (!target) {
- if (attempt >= 24) return
+ if (attempt >= 120) return
requestAnimationFrame(() => scrollTo(attempt + 1))
return
}
@@ -250,7 +250,7 @@ export const SessionReview = (props: SessionReviewProps) => {
root.scrollTop = Math.max(0, next)
if (ready) return
- if (attempt >= 24) return
+ if (attempt >= 120) return
requestAnimationFrame(() => scrollTo(attempt + 1))
}