With line wrapping enabled, a logical line can occupy several visual rows. The paste viewer gutter now renumbers from the actual wrapped height of each per-line block (external paste-lines.js), with blank gutter rows keeping numbers aligned with line starts. The gutter width is pinned (flex 0 0 auto) so its row count cannot feed back into the code column layout. Verified in headless chromium: counts, numbering, alignment, and no horizontal scroll all correct for long unbroken lines and mixed content, on reload and live toggle.
With line wrapping enabled, a logical line can occupy several visual rows. The paste viewer gutter now renumbers from the actual wrapped height of each per-line block (external paste-lines.js), with blank gutter rows keeping numbers aligned with line starts. The gutter width is pinned (flex 0 0 auto) so its row count cannot feed back into the code column layout. Verified in headless chromium: counts, numbering, alignment, and no horizontal scroll all correct for long unbroken lines and mixed content, on reload and live toggle.
Split the paste codebody into per-line block spans (paste-lines.js) and
rebuild the gutter from each line's wrapped height so numbers count
visual rows, not logical lines. Pinned the gutter width (flex 0 0 auto,
3ch) so its row count no longer feeds back into the code column width.
ResizeObserver renumbers on wrap toggle / resize; wrap-off behavior is
unchanged (one number per newline).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
With line wrapping enabled, a logical line can occupy several visual rows. The paste viewer gutter now renumbers from the actual wrapped height of each per-line block (external paste-lines.js), with blank gutter rows keeping numbers aligned with line starts. The gutter width is pinned (flex 0 0 auto) so its row count cannot feed back into the code column layout. Verified in headless chromium: counts, numbering, alignment, and no horizontal scroll all correct for long unbroken lines and mixed content, on reload and live toggle.
Pull request closed