From bfd3343896e33e33a7a41a2abde662f955732209 Mon Sep 17 00:00:00 2001 From: Llloooggg Date: Fri, 22 Apr 2022 02:35:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=B0=D1=80=D1=82=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B4=D0=BE=D0=B3=D0=BD=D0=B0=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=20=D0=BD=D0=B0=D0=B2=D0=B1=D0=B0=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wheretogo/static/common/css/base.css | 3 +++ wheretogo/static/maps/css/map.css | 6 +++--- wheretogo/static/maps/js/map.js | 2 +- wheretogo/templates/common/base.html | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 wheretogo/static/common/css/base.css diff --git a/wheretogo/static/common/css/base.css b/wheretogo/static/common/css/base.css new file mode 100644 index 0000000..cac678a --- /dev/null +++ b/wheretogo/static/common/css/base.css @@ -0,0 +1,3 @@ +.navbar { + height: 7%; +} \ No newline at end of file diff --git a/wheretogo/static/maps/css/map.css b/wheretogo/static/maps/css/map.css index f4a690a..b50a972 100644 --- a/wheretogo/static/maps/css/map.css +++ b/wheretogo/static/maps/css/map.css @@ -1,10 +1,10 @@ html, body { height: 100%; - margin: 0; } #map { - height: 100%; - width: 100%; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); + height: 93%; + width: 70%; } \ No newline at end of file diff --git a/wheretogo/static/maps/js/map.js b/wheretogo/static/maps/js/map.js index d3e17a4..0d864a7 100644 --- a/wheretogo/static/maps/js/map.js +++ b/wheretogo/static/maps/js/map.js @@ -4,7 +4,7 @@ const osm = L.tileLayer(url, { attribution: copy }); const map = L.map("map", { layers: [osm], minZoom: 5 }); map. locate() - .on("locationfound", (e) => map.setView(e.latlng, 8)) + .on("locationfound", (e) => map.setView(e.latlng, 12)) .on("locationerror", () => map.setView([0, 0], 5)); async function loadFacilities() { diff --git a/wheretogo/templates/common/base.html b/wheretogo/templates/common/base.html index fa2de02..ac5926a 100644 --- a/wheretogo/templates/common/base.html +++ b/wheretogo/templates/common/base.html @@ -14,6 +14,7 @@ + {% block extra_head %} {% endblock %} {% csrf_token %}