← All commits
AI · claude-opus-4-7radosukala47cd2a0Our-One/our-one

Fix layout-shift in AI terminal — fixed-height scrollable body + auto-scroll

+26 / 22 filesscreenshot pending

Files changed

Diff

Lines reveal in sequence as you scroll. First 20 lines per file shown — expand for the rest.

modifiedsrc/marketing/components/ai-terminal.tsx+25 / 1tsx
@@ -35,13 +35,20 @@ export function AiTerminal({ entries }: Props) {
const [paused, setPaused] = useState(false);
const intervalRef = useRef<ReturnType<typeof setInterval> | null>(null);
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+ const bodyRef = useRef<HTMLDivElement>(null);
 
const current = entries[index];
 
// Type out the current entry; advance to next when done.
useEffect(() => {
if (!current || paused) return;
setShown("");
+ // New entry — reset scroll to top so the typewriter starts at the top
+ // of the fixed-height viewport rather than wherever the previous entry
+ // happened to land.
+ if (bodyRef.current) {
+ bodyRef.current.scrollTop = 0;
+ }
let i = 0;
if (intervalRef.current) clearInterval(intervalRef.current);
modifiedsrc/shared/movement/ai-build-queries.ts+1 / 1typescript
@@ -14,7 +14,7 @@ export interface AiBuildEntry {
committedAt: Date;
}
 
const EXCERPT_MAX = 600;
+const EXCERPT_MAX = 500;
 
function firstParagraph(reasoning: string): string {
const trimmed = reasoning.trim();