rename parseCarte → parseMap, fix marker icon size, remove testing checklist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-26 15:10:14 +01:00
parent 41fbe71a1f
commit 0c682c78c0
4 changed files with 31 additions and 303 deletions

View file

@ -76,13 +76,12 @@
v-if="marker.icon"
:src="marker.icon"
class="marker-icon"
:style="{ width: marker.iconSize + 'px', height: marker.iconSize + 'px' }"
alt=""
/>
<img
v-else
src="/assets/svg/marker-pin.svg"
class="marker-icon marker-icon--default"
class="marker-icon"
alt=""
/>
{{ marker.title }}
@ -235,13 +234,10 @@ const getBlockComponent = (type) => {
}
.marker-icon {
flex-shrink: 0;
object-fit: contain;
}
.marker-icon--default {
width: 24px;
height: 24px;
flex-shrink: 0;
object-fit: contain;
}
.marker-cover {

View file

@ -1,5 +1,9 @@
<template>
<div v-if="content.template === 'carte'" class="block-map">
<div
v-if="content.template === 'carte'"
class="block-map"
:data-slug="content.slug"
>
<h4>{{ content.title }}</h4>
<img v-if="content.image" :src="content.image" class="carte-image" alt="" />
<div v-if="content.tags && content.tags.length" class="tags">
@ -13,18 +17,22 @@
v-if="marker.icon"
:src="marker.icon"
class="marker-icon"
:style="{ width: marker.iconSize + 'px', height: marker.iconSize + 'px' }"
alt=""
/>
<img
v-else
src="/assets/svg/marker-pin.svg"
class="marker-icon marker-icon--default"
class="marker-icon"
alt=""
/>
{{ marker.title }}
</h5>
<img v-if="marker.cover" :src="marker.cover" class="marker-cover" alt="" />
<img
v-if="marker.cover"
:src="marker.cover"
class="marker-cover"
alt=""
/>
<template v-if="marker.blocks">
<component
v-for="block in visibleBlocks(marker.blocks)"
@ -51,8 +59,8 @@ import QuoteBlock from './QuoteBlock.vue';
defineProps({
content: {
type: Object,
required: true
}
required: true,
},
});
const visibleBlocks = (blocks) => {