Added edit tooltips.

This commit is contained in:
2026-02-07 17:47:10 +01:00
parent 19dc029e28
commit 1414a846ec
3 changed files with 49 additions and 3 deletions

View File

@@ -66,7 +66,16 @@
class="row"
>
<div class="item-header">
<div class="key">{{ item.label || item.key }}</div>
<div class="key">
{{ item.label || item.key }}
<Icon
v-if="item.note"
v-tooltip="item.note"
icon="info2"
class="item-note"
/>
</div>
<div class="item-actions">
<Icon
@@ -262,11 +271,13 @@ const fields = computed(() => [
key: 'title',
type: 'string',
value: scene.value.title,
note: 'Do not correct language errors unless source was updated.',
},
{
key: 'description',
type: 'text',
value: scene.value.description,
note: 'Do not correct language errors unless source was updated.',
},
{
key: 'date',
@@ -408,6 +419,8 @@ async function submit() {
.key {
width: 8rem;
display: inline-flex;
align-items: center;
text-transform: capitalize;
font-weight: bold;
}
@@ -473,6 +486,16 @@ async function submit() {
}
}
.item-note{
fill: var(--glass);
padding: .5rem .75rem;
cursor: help;
&:hover {
fill: var(--primary);
}
}
.editor-footer {
display: flex;
flex-direction: column;