Skip to content

fix(web): keep the last diff file reachable with word wrap - #16

Merged
enisze merged 1 commit into
mainfrom
t3code/fix-last-diff-cutoff
Aug 2, 2026
Merged

fix(web): keep the last diff file reachable with word wrap#16
enisze merged 1 commit into
mainfrom
t3code/fix-last-diff-cutoff

Conversation

@enisze

@enisze enisze commented Aug 2, 2026

Copy link
Copy Markdown
Owner

What Changed

Adjust diff panel virtualization in word-wrap mode to render bounded chunks around the viewport, allowing wrapped rows to be measured accurately and keeping the final file's content reachable. Scroll mode retains its existing minimal chunk size.

Why

Long wrapped lines can occupy multiple visual rows, but estimating each off-screen line at a single row underestimates the total scroll height. This caused the scrollbar to reach the bottom before the tail of the last diff file was accessible. Measuring larger chunks lets the virtualizer extend the scroll range correctly.

UI Changes

This fixes scrolling behavior in the web diff panel when word wrap is enabled. No screenshots or video included because the change corrects an existing scrolling bug without introducing a new visual design or animation.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

@enisze
enisze merged commit a9b847e into main Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant