MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / scrollToBottomThread

Function scrollToBottomThread

apps/web/ui/ChannelView/index.tsx:122–131  ·  view source on GitHub ↗
(threadId: string)

Source from the content-addressed store, hash-verified

120 return false;
121 }
122 function scrollToBottomThread(threadId: string) {
123 const node = document.getElementById(threadId);
124 const layout = document.getElementById('sidebar-layout-left');
125 const footer = document.getElementById('chat-layout-footer');
126 if (node && layout && footer) {
127 node.scrollIntoView({ block: 'end' });
128 const offset = footer.clientHeight;
129 layout.scrollTop = layout.scrollTop + offset;
130 }
131 }
132 function selectPreviousThread() {
133 const index = threads.findIndex(
134 (thread) => thread.id === currentThreadId

Callers 2

selectPreviousThreadFunction · 0.85
selectNextThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected