Skip to content

Commit dcfee43

Browse files
authored
fix: #792 FOM Dashboard Gap Adjustment. (#848)
1 parent 0925587 commit dcfee43

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

admin/src/app/analytics-dashboard/analytics-dashboard.component.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
<form #alyticsForm="ngForm">
21
<div class="top-container" style="overflow-y: hidden;">
32
<div class="container">
43
<div class="title-container">
5-
<div>
4+
<form #alyticsForm="ngForm">
65
<!-- Page title and subtitle-->
76
<div>
87
<h1 class="text-muted mb-0">Dashboard</h1>
@@ -74,12 +73,12 @@ <h1 class="text-muted mb-0">Dashboard</h1>
7473
</select>
7574
</div>
7675
</div>
77-
</div>
76+
</form>
7877
</div>
7978
</div>
8079
</div>
8180

82-
<div class="bottom-container scroll">
81+
<div class="bottom-container">
8382
<!-- Public Engagement Overview -->
8483
<div class="container pb-0" id="public-engagement-overview">
8584
<div class="row"><p>Public Engagement Overview</p></div>
@@ -187,5 +186,4 @@ <h1 class="text-muted mb-0">Dashboard</h1>
187186
></apx-chart>
188187
</div>
189188
</div>
190-
</div>
191-
</form>
189+
</div>

admin/src/app/analytics-dashboard/analytics-dashboard.component.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@ $stats-blue-1: #123B64;
4747

4848
// --- Bottom Container
4949
.bottom-container {
50-
&.scroll {
51-
// Show vertical scrollbar only when content overflows viewport
50+
// Show vertical scrollbar only when content overflows viewport
5251
overflow-y: auto;
53-
// height: 65.45vh; // TODO: need to dynamically calculate this.
54-
height: 58.45vh; // TODO: need to dynamically calculate this.
55-
}
5652
}
5753

5854
// --- chart styling

admin/src/app/analytics-dashboard/analytics-dashboard.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export class AnalyticsDashboardComponent implements OnInit, AfterViewInit {
244244
},
245245
chart: {
246246
// Horizontal bar chart dynamic height adjustment
247-
height: Math.max(260, apiData.length * 50)
247+
height: Math.max(260, data.length * 50)
248248
}
249249
});
250250
}

admin/src/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
<div class="spinner-new rotating"></div>
1919
</div>
2020
</app-root>
21-
22-
...
23-
...
24-
<body>
25-
<app-root></app-root>
26-
27-
</body>
28-
...
29-
...
3021
</body>
3122

3223
</html>

0 commit comments

Comments
 (0)