Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(issues): show Jump to latest on mobile only (MUL-8324) (#9638)

Multica Eve9af15b1446f9
diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx
index 7b05f835d8..a306e6b800 100644
--- a/packages/views/issues/components/issue-detail.tsx
+++ b/packages/views/issues/components/issue-detail.tsx
@@ -1454,7 +1454,10 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
// User preference: pin the bottom comment bar to the scroll viewport. Off
// below `md` regardless of the preference — see the hook.
const stickyComposer = useStickyComposer();
- const jumpToLatest = useJumpToLatest(scrollContainerEl);
+ // Mobile only: desktop already reaches the latest entry through the
+ // ThreadMinimap rail, which is not rendered below `md`. Passing null keeps
+ // the hook's scroll and resize listeners off on desktop.
+ const jumpToLatest = useJumpToLatest(isMobile ? scrollContainerEl : null);
// Per-session: which resolved threads the user has temporarily expanded.
// Not persisted (matches Linear) — reload collapses everything back to bars.
@@ -3922,7 +3925,7 @@ export function IssueDetail({ issueId, onDelete, onDone, defaultSidebarOpen = tr
page background and is invisible), and pb-4 so the card floats
off the viewport edge — with -mb-4 giving the padding back to
the column's py-8 so the at-rest layout doesn't shift. */}
- {/* "Jump to latest" (MUL-8324) floats centered just above the
+ {/* "Jump to latest" (MUL-8324, mobile only) floats centered just above the
composer's top edge. With the sticky composer it rides the
composer itself; without it, a zero-height sticky anchor pins
it to the viewport bottom until the composer scrolls in. */}