Frontend: Skip sidebar row tooltip when no icon anchors it #4966

Notes uses `icon: null` so Vuetify's default `'end center'` tooltip
location anchors against an empty prepend slot, putting the tooltip
in a visually inconsistent place vs sibling rows. Gate the tooltip
on the row having an icon so Notes (and any future no-icon row in
detailsFields) skips the tooltip entirely — matches Title and
Caption above which never had one. The "Notes" / placeholder text
is already visible inline as the add-prompt, so no information is
lost.
This commit is contained in:
Michael Mayer 2026-05-14 07:33:13 +00:00
parent 15dabc5dcd
commit f741f8e103

View file

@ -411,7 +411,7 @@
<v-divider v-if="f.key === 'notes' && showRightsDivider" class="my-3 meta-rights-divider"></v-divider>
<v-list-item
v-show="shouldShowFieldRow(f)"
v-tooltip="f.label"
v-tooltip="f.icon ? f.label : null"
:prepend-icon="f.icon"
:class="['metadata__item', `meta-${f.key}`, { clickable: editingField !== f.key && (isEditable || f.read(photo)) }]"
@click.stop="onTextRowClick(f.key, f.read(photo))"