Record table cells keep their text unpadded

This commit is contained in:
2026-12-03 23:41:41 -06:00
parent b733381d6b
commit 3b3643b9af
+9 -9
View File
@@ -43,15 +43,7 @@ import { Section } from './tea-sections';
@for (row of table.rows; track $index; let index = $index) {
<tr>
@for (cell of row; track $index) {
<td
[class.muted]="
table.faded &&
table.faded.column === $index &&
table.faded.rows.includes(index)
"
>
{{ cell }}
</td>
<td [class.muted]="faded(table, index, $index)">{{ cell }}</td>
}
</tr>
}
@@ -122,4 +114,12 @@ import { Section } from './tea-sections';
})
export class TeaSection {
readonly section = input.required<Section>();
protected faded(
table: { faded?: { column: number; rows: number[] } },
row: number,
column: number,
): boolean {
return table.faded?.column === column && table.faded.rows.includes(row);
}
}