diff --git a/app/assets/stylesheets/less/_page.less b/app/assets/stylesheets/less/_page.less index 58bb23cac..5454c0572 100644 --- a/app/assets/stylesheets/less/_page.less +++ b/app/assets/stylesheets/less/_page.less @@ -5298,21 +5298,8 @@ label.issue-item-row { margin-right: 115px; .filename { - color:transparent; - font-size:0; - - &:before { - content:attr(title); - color:@base-text-color; - font-size:@base-font-size; - cursor:text; - } - } - .pathB { - display:block; - color:transparent; - font-size:0; - .opacity(0); + color:@base-text-color; + font-size:@base-font-size; } } @@ -5329,6 +5316,16 @@ label.issue-item-row { overflow-x: auto; overflow-y: hidden; + .patch-header { + .path { + display:block; + color:transparent; + font-size:0; + .opacity(0); + height: 0; + } + } + table { width: 100%; border-collapse: separate; diff --git a/app/views/partial_filediff.scala.html b/app/views/partial_filediff.scala.html index 389ae3c25..16dc34a26 100644 --- a/app/views/partial_filediff.scala.html +++ b/app/views/partial_filediff.scala.html @@ -152,11 +152,14 @@
- @if(StringUtils.isNotEmpty(diff.pathA)){--- @diff.pathA} - @if(StringUtils.isNotEmpty(diff.pathB)){+++ @diff.pathB} + @fileHeader
+
+ @if(StringUtils.isNotEmpty(diff.pathA)){
--- @diff.pathA
} + @if(StringUtils.isNotEmpty(diff.pathB)){
+++ @diff.pathB
} +