[PR #584] [MERGED] Fix diff split view coloring being solid color for the whole row (#553) #15469

Closed
opened 2025-11-02 11:47:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/584
Author: @mkuhlmann
Created: 1/4/2017
Status: Merged
Merged: 1/5/2017
Merged by: @lunny

Base: masterHead: split-diff-view-colors


📝 Commits (1)

📊 Changes

3 files changed (+48 additions, -45 deletions)

View changed files

📝 public/css/index.css (+18 -16)
📝 public/less/_repository.less (+24 -26)
📝 templates/repo/diff/box.tmpl (+6 -3)

📄 Description

This pull requests targets #553,

I've taken the suggestion from the issue with the difference that added or removed lines get a light grey on the other side, just like at github.

This pull request does:

  • Display lines that were added grey on the left side and green on the right side
  • Display lines that were modified red on the left and green on the right side
  • Display lines that were removed red on the left and grey on the right side

Screenshots for this UI change:
Behavior before
Behavior now


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/584 **Author:** [@mkuhlmann](https://github.com/mkuhlmann) **Created:** 1/4/2017 **Status:** ✅ Merged **Merged:** 1/5/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `split-diff-view-colors` --- ### 📝 Commits (1) - [`b2be5bd`](https://github.com/go-gitea/gitea/commit/b2be5bd2817bdf5d25a62eb546ca8c5527d7b9b3) Fix diff split view coloring (#553) ### 📊 Changes **3 files changed** (+48 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `public/css/index.css` (+18 -16) 📝 `public/less/_repository.less` (+24 -26) 📝 `templates/repo/diff/box.tmpl` (+6 -3) </details> ### 📄 Description This pull requests targets #553, I've taken the suggestion from the issue with the difference that added or removed lines get a light grey on the other side, just like at github. This pull request does: - Display lines that were added grey on the left side and green on the right side - Display lines that were modified red on the left and green on the right side - Display lines that were removed red on the left and grey on the right side Screenshots for this UI change: [Behavior before](https://cloud.githubusercontent.com/assets/1389813/21656095/ec59ff2e-d2bc-11e6-99df-413037070e83.png) [Behavior now](https://cloud.githubusercontent.com/assets/1389813/21656103/f2daa092-d2bc-11e6-99ff-8faac692e32b.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:47:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15469