From 02f9582a0f9c1ee913b11f71fda5b5698fc3fa2c Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 2 Oct 2024 11:14:22 +0200 Subject: pkg/cover: compact columns --- pkg/cover/templates/heatmap.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkg/cover/templates/heatmap.html b/pkg/cover/templates/heatmap.html index 2a14a0fb6..c5db61db6 100644 --- a/pkg/cover/templates/heatmap.html +++ b/pkg/cover/templates/heatmap.html @@ -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;} @@ -133,10 +138,13 @@ date {{ range $period := .Periods }} -
+
{{ $period }}
{{ end }} +
+ {{ approxInstr .Root.LastDayInstrumented }} blocks +
  • @@ -147,8 +155,8 @@ {{ $cov }}%
    {{ end }} -
    - of {{ approxInstr .Root.LastDayInstrumented }} blocks +
    + of

  • -- cgit mrf-deployment