|
1 | 1 | <ContentPanel @title={{t "developers.component.widget.api-metrics.title"}} @open={{or @open true}} @wrapperClass="bordered-classic" @panelBodyClass="p-0i"> |
2 | 2 | <div class="grid grid-cols-1 md:grid-cols-2 gap-px bg-gray-200 dark:bg-gray-800"> |
3 | | - <div class="bg-white dark:bg-gray-900 p-5"> |
| 3 | + <div class="bg-white dark:bg-gray-900 p-2"> |
4 | 4 | <h4 class="mb-4 text-sm font-semibold text-gray-700 dark:text-gray-200"> |
5 | 5 | {{t "developers.component.widget.api-metrics.api-requests"}} |
6 | 6 | </h4> |
7 | | - <div class="h-96"> |
| 7 | + <div class="relative" style={{html-safe "position: relative; height: 18rem; width: 100%;"}}> |
8 | 8 | <Chart @type="line" @datasets={{this.apiRequestData}} @options={{this.chartOptions}} /> |
9 | 9 | </div> |
10 | 10 | </div> |
11 | 11 |
|
12 | | - <div class="bg-white dark:bg-gray-900 p-5"> |
| 12 | + <div class="bg-white dark:bg-gray-900 p-2"> |
13 | 13 | <h4 class="mb-4 text-sm font-semibold text-gray-700 dark:text-gray-200"> |
14 | 14 | {{t "developers.component.widget.api-metrics.api-error"}} |
15 | 15 | </h4> |
16 | | - <div class="h-96"> |
| 16 | + <div class="relative" style={{html-safe "position: relative; height: 18rem; width: 100%;"}}> |
17 | 17 | <Chart @type="line" @datasets={{this.apiErrorDistributionData}} @options={{this.chartOptions}} /> |
18 | 18 | </div> |
19 | 19 | </div> |
20 | 20 |
|
21 | | - <div class="bg-white dark:bg-gray-900 p-5"> |
| 21 | + <div class="bg-white dark:bg-gray-900 p-2"> |
22 | 22 | <h4 class="mb-4 text-sm font-semibold text-gray-700 dark:text-gray-200"> |
23 | 23 | {{t "developers.component.widget.api-metrics.webhooks"}} |
24 | 24 | </h4> |
25 | | - <div class="h-96"> |
| 25 | + <div class="relative" style={{html-safe "position: relative; height: 18rem; width: 100%;"}}> |
26 | 26 | <Chart @type="line" @datasets={{this.webhookRequestData}} @options={{this.chartOptions}} /> |
27 | 27 | </div> |
28 | 28 | </div> |
29 | 29 |
|
30 | | - <div class="bg-white dark:bg-gray-900 p-5"> |
| 30 | + <div class="bg-white dark:bg-gray-900 p-2"> |
31 | 31 | <h4 class="mb-4 text-sm font-semibold text-gray-700 dark:text-gray-200"> |
32 | 32 | {{t "developers.component.widget.api-metrics.webhooks-response"}} |
33 | 33 | </h4> |
34 | | - <div class="h-96"> |
| 34 | + <div class="relative" style={{html-safe "position: relative; height: 18rem; width: 100%;"}}> |
35 | 35 | <Chart @type="line" @datasets={{this.webhookRequestTimingData}} @options={{this.chartOptions}} /> |
36 | 36 | </div> |
37 | 37 | </div> |
|
0 commit comments