Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: scroll the timeline importers into view without hiding the date controls (#3789)

[._.]/ Adam Eivy4c0b7013b5d9
diff --git a/client/src/pages/Timeline.jsx b/client/src/pages/Timeline.jsx
index 858e0d6cfa..cf098a58c8 100644
--- a/client/src/pages/Timeline.jsx
+++ b/client/src/pages/Timeline.jsx
@@ -146,7 +146,9 @@ export default function Timeline() {
// (which sits below it) scrolls the panels into view — otherwise it expands
// off-screen and looks like nothing happened.
const scrollToImportsRef = useRef(false);
- const scrollToImports = () => importsRef.current?.scrollIntoView?.({ behavior: 'smooth', block: 'start' });
+ // `nearest` scrolls the minimum needed, so the date controls just above stay
+ // on screen instead of being pushed off by a top-aligned scroll.
+ const scrollToImports = () => importsRef.current?.scrollIntoView?.({ behavior: 'smooth', block: 'nearest' });
const revealImports = () => {
if (showImports) return scrollToImports();
scrollToImportsRef.current = true;
@@ -274,6 +276,7 @@ export default function Timeline() {
<button
type="button"
onClick={revealImports}
+ aria-expanded={showImports}
aria-controls="timeline-import-panels"
className="mt-3 inline-flex items-center gap-1.5 rounded border border-port-border bg-port-card px-3 py-1.5 text-xs text-gray-300 hover:border-port-accent hover:text-gray-100"
>