Skip to content

Commit 1cd048b

Browse files
authored
fix: add tooltip to truncated span names in HTML report (#5164)
Span names with text-overflow:ellipsis now show the full name on hover via a title attribute.
1 parent 9c05b6b commit 1cd048b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ function gd(s) {
13721372
const cls = s.status === 'Error' ? 'err' : s.status === 'Ok' ? 'ok' : 'unk';
13731373
h += '<div class="sp-row" data-si="' + i + '">';
13741374
h += '<div class="sp-lbl" style="padding-left:' + (d * 14) + 'px">';
1375-
h += '<span class="sp-name">' + esc(s.name) + '</span>';
1375+
h += '<span class="sp-name" title="' + esc(s.name) + '">' + esc(s.name) + '</span>';
13761376
h += '<span class="sp-dur">' + fmt(s.durationMs) + '</span>';
13771377
h += '</div>';
13781378
h += '<div class="sp-track"><div class="sp-bar ' + cls + '" style="left:' + l + '%;width:' + w + '%" title="' + esc(s.name) + ' (' + fmt(s.durationMs) + ')"></div></div>';

0 commit comments

Comments
 (0)