refactor: use Kirby page title for markers and add button tooltips
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 19s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 19s
- Remove custom title field from marker.yml blueprint - Use default Kirby page title for marker names in MarkerList - Add French tooltips to MarkerList buttons (Ajouter, Modifier, Supprimer) - API already uses page title via $marker->title()->value() Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
bad465406d
commit
925e98aea7
4 changed files with 9 additions and 13 deletions
|
|
@ -11,10 +11,6 @@ tabs:
|
||||||
fields:
|
fields:
|
||||||
type: fields
|
type: fields
|
||||||
fields:
|
fields:
|
||||||
title:
|
|
||||||
label: Titre du marqueur
|
|
||||||
type: text
|
|
||||||
required: true
|
|
||||||
content:
|
content:
|
||||||
label: Contenu
|
label: Contenu
|
||||||
type: blocks
|
type: blocks
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -10,6 +10,7 @@
|
||||||
icon="add"
|
icon="add"
|
||||||
size="xs"
|
size="xs"
|
||||||
variant="filled"
|
variant="filled"
|
||||||
|
title="Ajouter un marqueur"
|
||||||
@click="$emit('add-marker')"
|
@click="$emit('add-marker')"
|
||||||
:disabled="!canAddMarker"
|
:disabled="!canAddMarker"
|
||||||
>
|
>
|
||||||
|
|
@ -41,11 +42,13 @@
|
||||||
<k-button
|
<k-button
|
||||||
icon="open"
|
icon="open"
|
||||||
size="xs"
|
size="xs"
|
||||||
|
title="Modifier le marqueur"
|
||||||
@click.stop="$emit('edit-marker', marker.id)"
|
@click.stop="$emit('edit-marker', marker.id)"
|
||||||
/>
|
/>
|
||||||
<k-button
|
<k-button
|
||||||
icon="trash"
|
icon="trash"
|
||||||
size="xs"
|
size="xs"
|
||||||
|
title="Supprimer le marqueur"
|
||||||
@click.stop="$emit('delete-marker', marker.id)"
|
@click.stop="$emit('delete-marker', marker.id)"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -161,10 +164,7 @@ export default {
|
||||||
border-radius: var(--rounded);
|
border-radius: var(--rounded);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
background-color: var(--tag-color-back);
|
||||||
|
|
||||||
.k-map-marker-item:hover {
|
|
||||||
background: var(--color-gray-200);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.k-map-marker-item.is-selected {
|
.k-map-marker-item.is-selected {
|
||||||
|
|
@ -176,10 +176,10 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 2rem;
|
width: 1.5rem;
|
||||||
height: 2rem;
|
height: 1.5rem;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--color-gray-300);
|
background: var(--input-color-back);
|
||||||
color: var(--color-white);
|
color: var(--color-white);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue