Skip to content

Commit f080b1e

Browse files
fix(web): minimap rail height follows the timeline, not the viewport
An open terminal shrinks the timeline but not 100vh, so a long rail overran it and the centered endpoint preview spilled over the terminal and header. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 59918ba commit f080b1e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/chat/MessagesTimeline.logic.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ export function workEntryIsVisibleInGroup(
283283
}
284284
const TIMELINE_MINIMAP_ITEM_SPACING = 8;
285285
export const TIMELINE_MINIMAP_MIN_ITEMS = 2;
286-
const TIMELINE_MINIMAP_MAX_HEIGHT_CSS = "calc(100vh - 18rem)";
286+
// Relative to the timeline, not the viewport, so an open terminal shrinks the rail and
287+
// endpoint previews (centered on their strip) still fit above and below it.
288+
const TIMELINE_MINIMAP_MAX_HEIGHT_CSS = "max(4rem, calc(100% - 14.75rem))";
287289
const TIMELINE_MINIMAP_PERSISTENT_GUTTER = 48;
288290

289291
export interface WorkGroupScrollAnchor {

0 commit comments

Comments
 (0)