mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
The previous measurement removed the image from layout (display:none) and read back the cell size on every ResizeObserver callback, forcing a synchronous reflow each time — expensive with many in-cell images. Read the column's explicit width from the table layout instead: it is the authoritative bound, costs no reflow, and is not subject to the image-forces-the-cell-wide circularity (so shrinking a column now clamps correctly). When a column has no explicit width, fall back to half the document width. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bpy5eV6C2wwf2MNut68BEh