From: Scott Worley Date: Thu, 26 Sep 2024 01:45:08 +0000 (-0700) Subject: Tweak appearance of leftovers column X-Git-Tag: v0.3.0~7 X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/36bc3a39ef440cc1af77d7d88844cacbe6b4387d?ds=sidebyside Tweak appearance of leftovers column --- 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 "# ) );