Fix default zoom

This commit is contained in:
ManUtopiK 2020-01-31 03:10:56 +01:00
parent f83ed5e350
commit 1eecf390d4
1 changed files with 4 additions and 5 deletions

View File

@ -45,7 +45,7 @@
/> />
</a> </a>
<div class="flex items-center px-4 text-sm"> <div class="flex items-center px-4 pb-2 text-sm">
<span class="pr-1 whitespace-no-wrap">Proposé par :</span> <span class="pr-1 whitespace-no-wrap">Proposé par :</span>
<a <a
target="_blank" target="_blank"
@ -66,7 +66,7 @@
</a> </a>
</div> </div>
<div v-if="topic.tags.length" class="flex px-4 py-2"> <div v-if="topic.tags.length" class="flex px-4 pb-2">
<font-awesome-icon icon="tags" size="lg" class="text-gray-500" /> <font-awesome-icon icon="tags" size="lg" class="text-gray-500" />
<div class="flex flex-wrap"> <div class="flex flex-wrap">
<span <span
@ -200,7 +200,7 @@ export default {
this.$refs.map.mapObject.fitBounds( this.$refs.map.mapObject.fitBounds(
window.L.latLngBounds([marker]), window.L.latLngBounds([marker]),
{ {
maxZoom: params.get("zoom") ? params.get("zoom") : 12, // prevent popup in cluster maxZoom: Number(params.get("zoom")) || 12, // prevent popup in cluster
padding: [10, 10] padding: [10, 10]
} }
); );
@ -217,8 +217,7 @@ export default {
new Date(event.end).toLocaleDateString("fr-FR"); new Date(event.end).toLocaleDateString("fr-FR");
let dateString = !event.end || sameDay ? "Le " : "Du "; let dateString = !event.end || sameDay ? "Le " : "Du ";
// eslint-disable-next-line no-console
console.log(event);
dateString += new Date(event.start).toLocaleDateString("fr-FR", { dateString += new Date(event.start).toLocaleDateString("fr-FR", {
weekday: "short", weekday: "short",
year: "numeric", year: "numeric",