diff --git a/covid19/static/css/covid19-map.css b/covid19/static/css/covid19-map.css index 2896fbac..8be9484a 100644 --- a/covid19/static/css/covid19-map.css +++ b/covid19/static/css/covid19-map.css @@ -63,18 +63,48 @@ #map-col { padding: 0 2px 0 0; + overflow: auto; } #table-col { padding: 0 0 0 0; + overflow: auto; } .state-option { font-size: 1em; - padding: 0 1em; + padding: 0 0.75em; } -@media screen and (max-width: 1280px) { + +#dashboard-state-selector nav { + height: auto; + margin: 30px 0 15px 0; +} +#dashboard-state-selector nav ul { + overflow: auto; + display: flex; + flex-direction: row; + flex-wrap: nowrap; +} + +@media screen and (min-width: 601px) { + #dashboard-state-selector nav ul { + flex-wrap: wrap; + } +} + +@media screen and (min-width: 992px) { + .state-option { + padding: 0 0.33em; + } +} + +@media screen and (min-width: 1200px) { .state-option { - font-size: 1em; - padding: 0 0.25em; + padding: 0 0.537em; } } + +div.dataTables_wrapper { + min-width: 800px; + margin: 0 auto; +} \ No newline at end of file diff --git a/covid19/static/js/covid19-table.js b/covid19/static/js/covid19-table.js index 07cc0adc..e1a7925a 100644 --- a/covid19/static/js/covid19-table.js +++ b/covid19/static/js/covid19-table.js @@ -28,6 +28,7 @@ jQuery(document).ready(function() { "autoWidth": false, "columns": columns, "scrollY": "650px", + "scrollX": true, "scrollCollapse": true, "paging": false, "searching": true, diff --git a/covid19/templates/dashboard.html b/covid19/templates/dashboard.html index 4ba9e6c8..1b6fb5f6 100644 --- a/covid19/templates/dashboard.html +++ b/covid19/templates/dashboard.html @@ -18,22 +18,30 @@