Fix default zoom
This commit is contained in:
parent
f83ed5e350
commit
1eecf390d4
|
@ -45,7 +45,7 @@
|
|||
/>
|
||||
</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>
|
||||
<a
|
||||
target="_blank"
|
||||
|
@ -66,7 +66,7 @@
|
|||
</a>
|
||||
</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" />
|
||||
<div class="flex flex-wrap">
|
||||
<span
|
||||
|
@ -200,7 +200,7 @@ export default {
|
|||
this.$refs.map.mapObject.fitBounds(
|
||||
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]
|
||||
}
|
||||
);
|
||||
|
@ -217,8 +217,7 @@ export default {
|
|||
new Date(event.end).toLocaleDateString("fr-FR");
|
||||
|
||||
let dateString = !event.end || sameDay ? "Le " : "Du ";
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(event);
|
||||
|
||||
dateString += new Date(event.start).toLocaleDateString("fr-FR", {
|
||||
weekday: "short",
|
||||
year: "numeric",
|
||||
|
|
Reference in New Issue