Skip to content

Commit

Permalink
pkg/cover: compact columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tarasmadan committed Oct 2, 2024
1 parent 2a44cbc commit 02f9582
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions pkg/cover/templates/heatmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@
}
.date_column {
display: inline-block;
width: 50px;
width: 35px;
}
.vertical_text {
writing-mode: vertical-lr;
transform: rotate(180deg);
align-content: center;
}
.instrumented_column {
display: inline-block;
width: 70px;
width: 50px;
text-align: right;
}
.tree_depth_0 {width: 0px;}
Expand Down Expand Up @@ -133,10 +138,13 @@
date
</div>
{{ range $period := .Periods }}
<div class="date_column bold">
<div class="date_column vertical_text bold">
{{ $period }}
</div>
{{ end }}
<div class="instrumented_column vertical_text">
{{ approxInstr .Root.LastDayInstrumented }} blocks
</div>
</li>
<li>
<div class="first_column bold">
Expand All @@ -147,8 +155,8 @@
{{ $cov }}%
</div>
{{ end }}
<div class="instrumented_column">
of {{ approxInstr .Root.LastDayInstrumented }} blocks
<div class="instrumented_column vertical_text">
of
</div>
</li>
<br>
Expand Down

0 comments on commit 02f9582

Please sign in to comment.