From: Mischa POSLAWSKY Date: Sun, 17 Oct 2021 11:34:27 +0000 (+0200) Subject: dieren: regular cell width regardless of contents X-Git-Tag: v1.13~136 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/621e09e71566da40f79069d01b622f651bf0a335 dieren: regular cell width regardless of contents --- diff --git a/dieren.plp b/dieren.plp index 6ab5117..4775efe 100644 --- a/dieren.plp +++ b/dieren.plp @@ -42,13 +42,13 @@ Html({ table { width: 100%; } +th { + width: 1%; /* min-content */ +} td { + width: 15%; /* 1fr */ vertical-align: bottom; } -figure { - width: 100%; - height: 100%; -} figure[hidden] { transition: opacity 1s 0s; display: inline; @@ -133,6 +133,7 @@ while (my $name = shift @table) { while ($name = shift @table) { last if $name =~ m/^>/; } + $name or next; } if ($name =~ s/^>//) { # leading dash starts a new row