-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Closed
Labels
Description
Description
When viewing commit history diffs in split mode for the first time, expanding additional context causes the diff view to unexpectedly switch to unified mode.
As a result, the right-side diff content is collapsed into the left side, breaking the split-view layout and making the comparison difficult to read.
Steps to Reproduce
- Open any repository on Gitea
- Go to Commits
- Click a commit to view its diff
- Ensure the diff view is in Split mode
- Click "Expand diff" / "Show more context" on any file
- Observe the diff layout after expansion
Expected Behavior
- The diff should remain in split mode
- Left and right panes should stay aligned
- Expanding context should not change the diff mode
Actual Behavior
- The diff switches to unified mode
- Right-side diff content is merged into the left pane
- The split layout is effectively broken after expansion
Gitea Version
1.26.0+dev-209-g26602fd207
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
Linux
How are you running Gitea?
OpenRC or command-line
Database
None
Reactions are currently unavailable