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) {
|
@for (row of table.rows; track $index; let index = $index) {
|
||||||
<tr>
|
<tr>
|
||||||
@for (cell of row; track $index) {
|
@for (cell of row; track $index) {
|
||||||
<td
|
<td [class.muted]="faded(table, index, $index)">{{ cell }}</td>
|
||||||
[class.muted]="
|
|
||||||
table.faded &&
|
|
||||||
table.faded.column === $index &&
|
|
||||||
table.faded.rows.includes(index)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ cell }}
|
|
||||||
</td>
|
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
@@ -122,4 +114,12 @@ import { Section } from './tea-sections';
|
|||||||
})
|
})
|
||||||
export class TeaSection {
|
export class TeaSection {
|
||||||
readonly section = input.required<Section>();
|
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