Record table cells keep their text unpadded
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user