:>
<style>
- td {
- white-space: nowrap;
- }
- th {
- width: auto !important;
- }
-
td svg {
vertical-align: middle;
}
.sample {
text-align: left;
padding: 1px 0.3em;
- white-space: normal;
+ }
+ td.sample {
+ width: auto;
+ }
+ th {
+ white-space: nowrap; /* prevent resize by sample */
}
</style>
my ($id, $info) = @{$row};
printf '<tr id="%s">', $id;
- say '<th>', $info->{name} // ucfirst $id;
+ my $th = 'th';
+ $th .= sprintf ' title="%s"', $_ for $info->{title} || ();
+ say "<$th>", $info->{name} // ucfirst $id;
my $colspan = 1;
my $col = 0;