make nav-bar sticky
This commit is contained in:
@@ -684,11 +684,12 @@ class DashboardService
|
||||
|
||||
return SurveillanceCase::selectRaw("
|
||||
CASE
|
||||
WHEN patient_age_inday < 365 THEN '0-1y'
|
||||
WHEN patient_age_inday < 1825 THEN '1-5y'
|
||||
WHEN patient_age_inday < 6570 THEN '5-18y'
|
||||
WHEN patient_age_inday < 21900 THEN '18-60y'
|
||||
ELSE '60+y'
|
||||
WHEN patient_age_inday < 365 THEN '<1 year'
|
||||
WHEN patient_age_inday < 1825 THEN '1–4 years'
|
||||
WHEN patient_age_inday < 6570 THEN '5–17 years'
|
||||
WHEN patient_age_inday < 16425 THEN '18–44 years'
|
||||
WHEN patient_age_inday < 23725 THEN '45–64 years'
|
||||
ELSE '65+ years'
|
||||
END as age_group,
|
||||
COUNT(*) as total
|
||||
")
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.9.1"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.2.0"></script>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
|
||||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
|
||||
|
||||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
|
||||
|
||||
<script src="/js/dashboard/filter.js"></script>
|
||||
<script src="/js/dashboard/charts.js"></script>
|
||||
|
||||
@@ -41,6 +41,11 @@
|
||||
background: white;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
padding-left: 15px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: white;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
}
|
||||
|
||||
/* NAV ITEMS */
|
||||
@@ -57,14 +62,12 @@
|
||||
background: #cce0d4;
|
||||
}
|
||||
|
||||
/* ACTIVE TAB */
|
||||
.active-tab {
|
||||
color: #0B8F3C;
|
||||
border-bottom: 3px solid #0B8F3C;
|
||||
background: #e5efe8;
|
||||
}
|
||||
|
||||
/* CONTENT */
|
||||
.content-area {
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user