Record blocks draw the charts grid only when there are charts
This commit is contained in:
@@ -57,9 +57,9 @@ import { Section } from './tea-sections';
|
|||||||
<h3>{{ chart.title }}</h3>
|
<h3>{{ chart.title }}</h3>
|
||||||
<app-plot [figure]="chart.figure" [height]="chart.height ?? 340" />
|
<app-plot [figure]="chart.figure" [height]="chart.height ?? 340" />
|
||||||
}
|
}
|
||||||
@if (block.charts; as charts) {
|
@if (block.charts?.length) {
|
||||||
<div class="charts">
|
<div class="charts">
|
||||||
@for (chart of charts; track $index) {
|
@for (chart of block.charts; track $index) {
|
||||||
<div>
|
<div>
|
||||||
<h3>{{ chart.title }}</h3>
|
<h3>{{ chart.title }}</h3>
|
||||||
<app-plot [figure]="chart.figure" [height]="chart.height ?? 340" />
|
<app-plot [figure]="chart.figure" [height]="chart.height ?? 340" />
|
||||||
|
|||||||
Reference in New Issue
Block a user