Skip to content

Commit 2c74ad7

Browse files
Remove duplicate review diff stats
they are already displayed in tab menu
1 parent dcb648e commit 2c74ad7

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

templates/repo/diff/box.tmpl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
diffTreeBtn.setAttribute('data-tooltip-content', diffTreeBtn.getAttribute(diffTreeVisible ? 'data-hide-text' : 'data-show-text'));
1818
</script>
1919
{{end}}
20-
{{if not .DiffNotAvailable}}
21-
<div class="diff-detail-stats gt-df gt-ac gt-fw">
22-
{{svg "octicon-diff" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}}
23-
</div>
24-
{{end}}
2520
</div>
2621
<div class="diff-detail-actions">
2722
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}}

web_src/css/repo.css

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,34 +1515,6 @@
15151515
flex-wrap: wrap;
15161516
}
15171517
}
1518-
.repository .diff-detail-box .diff-detail-stats strong {
1519-
margin-left: 0.25rem;
1520-
margin-right: 0.25rem;
1521-
}
1522-
1523-
/* Because the translations contain the <strong> we need to style with nth-of-type */
1524-
1525-
.repository .diff-detail-box .diff-detail-stats strong:nth-of-type(1) {
1526-
color: var(--color-yellow);
1527-
}
1528-
1529-
.repository .diff-detail-box .diff-detail-stats strong:nth-of-type(2) {
1530-
color: var(--color-green);
1531-
}
1532-
1533-
.repository .diff-detail-box .diff-detail-stats strong:nth-of-type(3) {
1534-
color: var(--color-red);
1535-
}
1536-
1537-
@media (max-width: 480px) {
1538-
.repository .diff-detail-box .diff-detail-stats {
1539-
font-size: 0;
1540-
line-height: 1.6rem;
1541-
}
1542-
.repository .diff-detail-box .diff-detail-stats strong {
1543-
font-size: 1rem;
1544-
}
1545-
}
15461518

15471519
.diff-detail-actions {
15481520
display: flex;

0 commit comments

Comments
 (0)