Vibe Coding Encyclopedia

Shrink content on overflow

Set a position that can be used for each panel, and reduce the zoom of the panel by the percentage that is overflowing only when it overflows — keep the non-excessive panel and prevent it from being cut.

Category
CSS & layout

Technical terms · Shrink-to-fit (overflow-only scaling) · CSS zoom · MutationObserver · ResizeObserver · Anchor-aware fitting

Related techniques

Technique document (Korean)