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
- Enable fixed width in your user preferences
- Enable
rapid_diffs_on_commit_showfeature flag - Go to any commit
- Change view mode
- Observe the page to resize according to your view setting:
- Parallel view should get the wide view
- Inline view should get the narrow view (fixed width)