Resize diff view in Commit Rapid Diffs

What does this MR do and why?

This MR adds automatic resize when view mode is switched in between parallel and inline views.

Screenshots or screen recordings

Before After
CleanShot_2025-12-11_at_21.24.42_2x CleanShot_2025-12-11_at_21.23.50_2x

How to set up and validate locally

  1. Enable fixed width in your user preferences
  2. Enable rapid_diffs_on_commit_show feature flag
  3. Go to any commit
  4. Change view mode
  5. Observe the page to resize according to your view setting:
    1. Parallel view should get the wide view
    2. Inline view should get the narrow view (fixed width)

Merge request reports

Loading