mirror of
https://github.com/coder/coder.git
synced 2026-10-31 02:43:21 +08:00
Closes #21962 This pull-request makes it so that we auto-scroll to our first diff within the files when the page loads. It attempts to center it within the inner viewports scroll. | Old | New | | --- | --- | | <img width="3516" height="2390" alt="CleanShot 2026-02-06 at 17 12 23@2x" src="https://github.com/user-attachments/assets/2215178d-b887-4d3b-a5a2-882ad4b1f03c" /> | <img width="3516" height="2390" alt="CleanShot 2026-02-06 at 17 11 53@2x" src="https://github.com/user-attachments/assets/4b28c589-ebee-4e8c-ac44-22717f80023c" />