From 36bc3a39ef440cc1af77d7d88844cacbe6b4387d Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 25 Sep 2024 18:45:08 -0700 Subject: [PATCH] Tweak appearance of leftovers column --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a7c2819..cbe9ae9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,7 @@ const HEADER: &str = r#" tr.key > th > div { width: 1em; } tr.key > th > div > div { width: 5em; transform-origin: bottom left; transform: translateX(1em) rotate(-65deg) } td { border: thin solid gray; } + td.leftover { text-align: left; border: none; padding-left: .4em; } td.yes { border: thin solid gray; background-color: #ddd; } /* h/t https://stackoverflow.com/questions/5687035/css-bolding-some-text-without-changing-its-containers-size/46452396#46452396 */ .highlight { text-shadow: -0.06ex 0 black, 0.06ex 0 black; } @@ -260,7 +261,7 @@ fn render_row(columns: &[String], row: &mut Row) -> HTML { .collect::(); let leftovers = render_all_leftovers(row); HTML(format!( - "{row_label}{cells}{leftovers}\n" + "{row_label}{cells}{leftovers}\n" )) } @@ -623,7 +624,7 @@ mod tests { } ), HTML::from( - r#"nopebar + r#"nopebar "# ) ); -- 2.44.1