0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 04:55:34 +02:00
This commit is contained in:
wxiaoguang 2026-05-02 02:37:53 +08:00
parent fbd1153830
commit b034849778
2 changed files with 2 additions and 7 deletions

View File

@ -6,8 +6,8 @@
{{if or .Addition .Deletion}}
<div class="flex-text-block tw-flex-shrink-0 tw-text-[13px] {{if .Classes}}{{.Classes}}{{end}}">
<span>
{{if .Addition}}<span class="tw-text-diff-added-fg">+{{.Addition}}</span>{{end}}
{{if .Deletion}}<span class="tw-text-diff-removed-fg">-{{.Deletion}}</span>{{end}}
{{if .Addition}}<strong class="tw-text-diff-added-fg">+{{.Addition}}</strong>{{end}}
{{if .Deletion}}<strong class="tw-text-diff-removed-fg">-{{.Deletion}}</strong>{{end}}
</span>
<span class="diff-stats-bar" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.stats_desc_file" (Eval .Addition "+" .Deletion) .Addition .Deletion}}">
{{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}}

View File

@ -1735,11 +1735,6 @@ tbody.commit-list {
margin-left: 0 !important;
}
.diff-file-header .tw-text-diff-added-fg,
.diff-file-header .tw-text-diff-removed-fg {
font-weight: var(--font-weight-semibold);
}
.diff-stats-bar {
display: inline-block;
background-color: var(--color-diff-removed-fg); /* the background is used as "text foreground color" */