From 201604f37b3fa7f1cb1e3635a9aba61e9da96f79 Mon Sep 17 00:00:00 2001 From: Artur Meski Date: Sun, 22 Mar 2026 19:39:39 +0000 Subject: [PATCH] Formatting on mobile, again --- src/report.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/report.rs b/src/report.rs index c17383a..fc6ebe7 100644 --- a/src/report.rs +++ b/src/report.rs @@ -1544,8 +1544,15 @@ fn write_bar_table(h: &mut HtmlWriter, title: &str, headers: &[&str], rows: &[Ba if has_covers { h.line(""); // empty header for the cover column } - for hdr in headers { - h.linef(format_args!("{}", html_escape(hdr))); + // The second-to-last header is always the play-count column; mark it so + // it can be hidden together with the td.play-count cells on mobile. + let play_count_idx = headers.len().saturating_sub(2); + for (i, hdr) in headers.iter().enumerate() { + if i == play_count_idx { + h.linef(format_args!("{}", html_escape(hdr))); + } else { + h.linef(format_args!("{}", html_escape(hdr))); + } } h.close(""); h.close("");