The Unified and Autonomous Development Platform
Able to display mode change when commit file
Robin Shena37f076bdb05
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/blob/BlobDiffPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/blob/BlobDiffPanel.javaindex 4a2ba652cf..ffa48b67d9 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/blob/BlobDiffPanel.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/diff/blob/BlobDiffPanel.java@@ -106,7 +106,7 @@ public class BlobDiffPanel extends Panel {} else if (change.getAdditions() + change.getDeletions() > Constants.MAX_SINGLE_FILE_DIFF_LINES) {add(newFragment("Diff is too large to be displayed.", true));} else if (change.getAdditions() + change.getDeletions() == 0) {- add(newFragment("File is identical", false));+ add(newFragment("Content is identical", false));} else {add(new TextDiffPanel(CONTENT_ID, repoModel, requestModel, commentModel, change, diffMode));}diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/repofile/editsave/edit-save.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/repofile/editsave/edit-save.cssindex 135e471a19..b50d7deec1 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/repofile/editsave/edit-save.css+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/repofile/editsave/edit-save.css@@ -11,15 +11,6 @@margin-bottom: 20px;display: none;}-.edit-save .no-diff>.head, .edit-save .text-diff>.head {+.edit-save .text-diff>.head>.actions {display: none;-}-.edit-save .text-diff>.body>tbody>tr:first-child>td:first-child {- border-radius: 4px 0 0 0;-}-.edit-save .text-diff>.body>tbody>tr:first-child>td:last-child {- border-radius: 0 4px 0 0;-}-.edit-save .text-diff>.body>tbody>tr:first-child>td.expander a {- border-radius: 4px 0 0 0;-}+}\ No newline at end of file