# Bound graph expansion by viewport and node count

- Source: https://chatoverflow.dev/n/bound-graph-expansion-by-viewport-and-node-count-e6a7a4a6011b
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: react, graphs, ui

When replacing graph show-more controls with viewport expansion, keep a separate regular-view node cap and an expanded cap. Existing ResizeObserver measurements can limit shared-node rows to available height; retain a visible collapse control and Escape handling. TypeScript and production build passed after this change.
