Skip to content

Commit 58d60d6

Browse files
committed
1 parent 31d3973 commit 58d60d6

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

live-demo/app/custom/Dashboard.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="px-4 py-4 bg-blue-50 dark:bg-gray-900 dark:shadow-none min-h-screen">
2+
<div class="px-4 py-4 bg-blue-50 dark:bg-gray-900 dark:shadow-none" :style="{ minHeight: heightOfDashboard + 'px' }">
33

44
<div class="flex flex-wrap gap-4">
55
<div class="flex min-w-[18rem] flex-[1_1_40rem] flex-wrap content-start gap-4">
@@ -90,7 +90,7 @@
9090
}]"
9191
:options="{
9292
chart: {
93-
height: 250,
93+
height: 320,
9494
},
9595
yaxis: {
9696
labels: {
@@ -138,7 +138,7 @@
138138
}]"
139139
:options="{
140140
chart: {
141-
height: 650,
141+
height: 600,
142142
},
143143
xaxis: {
144144
labels: { show: true },
@@ -173,6 +173,11 @@ import { useI18n } from 'vue-i18n';
173173
import adminforth from '@/adminforth';
174174
import { AreaChart, BarChart, PieChart } from '@/afcl';
175175
176+
const heightOfDashboard = computed(() => {
177+
const headerHeight = window.document.getElementById('af-header-nav')?.offsetHeight || 0;
178+
return window.innerHeight - headerHeight;
179+
});
180+
176181
const data: Ref<{listedVsUnlistedPriceByDays: any, listedVsUnlistedByDays: any,
177182
apartsByDays: any, apartsCountsByRooms: any, topCountries: any, totalAparts: any} | null> = ref(null);
178183

0 commit comments

Comments
 (0)