Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
unified-list: fix scroll to top keep gap bug (#850)
Caleb Taylor56226764c56d
diff --git a/js/app/packages/core/util/scrollToKeepGap.ts b/js/app/packages/core/util/scrollToKeepGap.tsindex bade5e6ec0..9d813d5d3d 100644--- a/js/app/packages/core/util/scrollToKeepGap.ts+++ b/js/app/packages/core/util/scrollToKeepGap.ts@@ -46,6 +46,8 @@ export function scrollToKeepGap({} else {const distanceToTop = targetTop - container.scrollTop;+ if (container.scrollTop < distanceToTop) return;+if (distanceToTop <= threshold) {const newScrollTop = targetTop - gap;container.scrollTo({ top: newScrollTop, behavior: 'auto' });