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:
|
||||
type: fields
|
||||
fields:
|
||||
title:
|
||||
label: Titre du marqueur
|
||||
type: text
|
||||
required: true
|
||||
content:
|
||||
label: Contenu
|
||||
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"
|
||||
size="xs"
|
||||
variant="filled"
|
||||
title="Ajouter un marqueur"
|
||||
@click="$emit('add-marker')"
|
||||
:disabled="!canAddMarker"
|
||||
>
|
||||
|
|
@ -41,11 +42,13 @@
|
|||
<k-button
|
||||
icon="open"
|
||||
size="xs"
|
||||
title="Modifier le marqueur"
|
||||
@click.stop="$emit('edit-marker', marker.id)"
|
||||
/>
|
||||
<k-button
|
||||
icon="trash"
|
||||
size="xs"
|
||||
title="Supprimer le marqueur"
|
||||
@click.stop="$emit('delete-marker', marker.id)"
|
||||
/>
|
||||
</span>
|
||||
|
|
@ -161,10 +164,7 @@ export default {
|
|||
border-radius: var(--rounded);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.k-map-marker-item:hover {
|
||||
background: var(--color-gray-200);
|
||||
background-color: var(--tag-color-back);
|
||||
}
|
||||
|
||||
.k-map-marker-item.is-selected {
|
||||
|
|
@ -176,10 +176,10 @@ export default {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
border-radius: 50%;
|
||||
background: var(--color-gray-300);
|
||||
background: var(--input-color-back);
|
||||
color: var(--color-white);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue