dieren: regular cell width regardless of contents
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 17 Oct 2021 11:34:27 +0000 (13:34 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Oct 2021 14:33:21 +0000 (16:33 +0200)
dieren.plp

index 6ab51174b3b9594a1faa37addb8c32a1222884a0..4775efebabc4e4f8d8af5b55949148e8323ae5d5 100644 (file)
@@ -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