Skip to content

Commit 0de24f2

Browse files
committed
fix: transition to data-tooltip-content
1 parent 67439ef commit 0de24f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/branch/list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
{{if and (not .DBBranch.IsDeleted) $.DefaultBranchBranch}}
111111
<div class="commit-divergence">
112112
<div class="bar-group">
113-
<div class="count count-behind" title="{{.CommitsBehind}} {{if eq .CommitsBehind 1}}commit{{else}}commits{{end}} behind {{$.DefaultBranchBranch.DBBranch.Name}}">{{.CommitsBehind}}</div>
113+
<div class="count count-behind" data-tooltip-content="{{.CommitsBehind}} {{if eq .CommitsBehind 1}}commit{{else}}commits{{end}} behind {{$.DefaultBranchBranch.DBBranch.Name}}">{{.CommitsBehind}}</div>
114114
{{/* old code bears 0/0.0 = NaN output, so it might output invalid "width: NaNpx", it just works and doesn't caues any problem. */}}
115115
<div class="bar bar-behind" style="width: {{Eval 100 "*" .CommitsBehind "/" "(" .CommitsBehind "+" .CommitsAhead "+" 0.0 ")"}}%"></div>
116116
</div>
117117
<div class="bar-group">
118-
<div class="count count-ahead" title="{{.CommitsAhead}} {{if eq .CommitsAhead 1}}commit{{else}}commits{{end}} ahead of {{$.DefaultBranchBranch.DBBranch.Name}}">{{.CommitsAhead}}</div>
118+
<div class="count count-ahead" data-tooltip-content="{{.CommitsAhead}} {{if eq .CommitsAhead 1}}commit{{else}}commits{{end}} ahead of {{$.DefaultBranchBranch.DBBranch.Name}}">{{.CommitsAhead}}</div>
119119
<div class="bar bar-ahead" style="width: {{Eval 100 "*" .CommitsAhead "/" "(" .CommitsBehind "+" .CommitsAhead "+" 0.0 ")"}}%"></div>
120120
</div>
121121
</div>

0 commit comments

Comments
 (0)